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:
The [confluence_table-plus] macro is a standalone macro and it cannot be used inline. Click on this message for details.
Running this command produces output similar to the following example:The [confluence_table-plus] macro is a standalone macro and it cannot be used inline. Click on this message for details.
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:
The [confluence_table-plus] macro is a standalone macro and it cannot be used inline. Click on this message for details.
Replace the variables with the following values:- 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