Updating file server references
The way you execute the file_server_change script depends on your database platform.
- To update file server references on Oracle
- To update file server references on SQL server
- Where to go from here
To update file server references on Oracle
In the file structure extracted from BSA<version>-<platform>.zip, copy the script from the following location (to a directory from which you can access SQL*Plus):
Location
Script
BSA<version>-<platform>/files/configurations/
db_scripts/oracle/utility/file_server_change/file_server_change_oracle.sql
- Change (cd) to the directory where you copied the scripts.
- Execute the following SQL*Plus command to change all file server references so they point to the new default file server:
sqlplus <user> / <password> @file_server_change_oracle.sql
Running this command produces output similar to the following example:Command Example output file_server_change script The Default File Server and root path current setting //devfs1/blade/storage3/ PL/SQL procedure successfully completed. The file_server_change script sample output:
The Default File Server and root path current setting //devfs1/blade/storage3/ PL/SQL procedure successfully completed.The number of rows updated by each update statement will vary in your database.
- To be certain that all references point to the new file server, run the file_server_check script again (see Checking-file-server-references). The output should identify only one file server, and its values should be those of the new file server and storage location.
To update file server references on SQL server
In the file structure extracted from BSA<version>-<platform>.zip, copy the script from the following locations (to a directory from which you can access the sqlcmd utility):
Location
Scripts
BSA<version>-<platform>/files/configurations/
db_scripts/sqlserver/utility/file_server_change/- file_server_change_sqlserver.bat
- file_server_change_sqlserver.sql
- Change (cd) to the directory where you copied the scripts.
Change all file server references so they point to the new default file server by running the following command:
file_server_change_sqlserver sqlsrv <user> <database>
Replace the variables with the following valuessqlsrvName of the SQL Server hosting the TrueSight Server Automation database.
userUser name of a database user that has the privileges required to perform this operation.
databaseName of the database.
- To be certain that all references point to the new file server, run the file_server_check script again (see Checking-file-server-references). The output should identify only one file server, and its values should be those of the new file server and storage location.
Where to go from here
If you have extended objects in your environment, see Updating-extended-object-definitions-with-new-file-server-location