You need to run PostgreSQL
commands in order to migrate the SAS Decision Manager Common Data
Server database. These commands are located in the following directory:
!SASHOME/SASWebInfrastructurePlatformDataServer/9.4/bin
When you run these commands,
substitute the correct values for the host name, port number, and
user ID for your database. These commands prompt you to enter a password.
Note: If you are performing the
upgrade in a UNIX operating environment and these commands fail, you
might need to set environment variables.
See
Set Environment Variables for UNIX for more information.
-
On the source machine,
run the
pg_dump command. This command creates
a script file that contains the SQL commands that are needed to reconstruct
the database:
pg_dump --host=host_name --port=nnnn --username=database_owner_userID
--password –Fp dcmdb > dcmdb.dump
-
Copy the generated file
dcmdb.dump to the target server.
-
-
On the target server,
run the
dropdb command to drop the database
that was created by the SAS Deployment Wizard:
dropdb --host=host_name --port=nnnn --username=database_owner_userID
--password database_name
-
On the target server,
run the
createdb command to create a new,
empty database:
createdb --host=host_name --port=nnnn --username=database_owner_userID
--password database_name
-
On the target server,
restore the exported database:
psql --host=host_name --port=nnnn -f dcmdb.dump database_name userID
Note: Specify the user ID for Decision
Manager Common Middle Tier. Do not specify the user ID of the database
owner account.
Note: You might see messages such
as no privileges were granted for "public" or role userID does
not exist. These messages mean that these users are no
longer applicable to the upgraded database instance and can be ignored.