Command line options

Print this Topic  Previous Topic Home Topic
You are here: No topics above this level

 

You can now run Sohodox in maintenance mode

Commands:
 

1./resetdbprofile /dbid=1
 
This option resets the profile of the MainDB.
 
where, dbid is the ID of the DB.
2./resetuserdbprofile /dbid=1 /username=john
 
This options resets the specified user’s profile in the specified DB.
 
where, dbid is the ID of the DB.
and username is user name of the user whose profile you want to reset.
 
/resetuserdbprofile /dbid=1 /username=#all
 
This options resets all the users profile in the specified DB.
 
/resetuserdbprofile /dbid=1 /username=john,mike,mary
 
This options resets specified users profile in the specified DB.
3./resetuserprofile /dbid=1 /username=john
 
This options resets the user profile itself.
4./resetcachedb /dbid=1/
 
This options resets the cache of the specified DB.
5./reconfiguremaindb
 
This option helps you change the connection details for the Main DB. This option does not let you change the DB type of the MainDB
6./reconfigureaccessmaindb /dbname=MainDB.gxdb or /reconfiguremssqlmaindb /dbname=MainDB_sdx

As explained above the /reconfiguremaindb command is useful when connection details for the MainDB change. But that command does not let you change the type of the MainDB (i.e. if it is MS Access based, then you cannot change it to MS SQL Server). To change the DB Type of the MainDB, use the /reconfigureaccessmaindb or /reconfiguremssqlmaindb commands for MS Access and MS SQL Server respectively. These commands are only useful in special situations and should only be used in consultation with our support team.

 

 

Usage:

 

You can use the commands in the following situation...

 
1. When you are navigating a Document type and you get the following error  "The given key was not present in the dictionary". Then follow the steps below...

Close Sohodox and Open the Command Line Window.
In the Command Line window type the following at the cursor...
 
       "C:\Program Files\Sohodox Desktop\Sohodox.exe" /resetdbprofile/dbid=1/username=#all
       (Assuming that Sohodox is installed in the default location.)

Now, hit the Enter key.

Sohodox should now launch and you should not get any errors.

If you still get the same error then follow the steps below...

Close Sohodox and Open the Command Line Window.
In the Command Line window type the following at the cursor...
 
       "C:\Program Files\Sohodox Desktop\Sohodox.exe"/resetdbprofile/dbid=1

       (Assuming that Sohodox is installed in the default location.)

Now, hit the Enter key.

Sohodox should now launch and you should not get error again.

 

2. When you have changed the location of the Main DB then you will have to use this command to reconfigure it otherwise you will get the following error "Failed to connect to the Main DB". To reconfigure the Main DB follow the steps below...

Close Sohodox and Open the Command Line Window on the machine on which Sohodox is installed in Server mode.
In the Command Line window type the following at the cursor...
 
       "C:\Program Files\Sohodox Desktop\Sohodox.exe" /reconfiguremaindb

       (Assuming that Sohodox is installed in the default location.)

Now, hit the Enter key.

Sohodox will now launch. A dialog will pop-up, in this dialog specify the location where the Main DB is located. (It is usually located in the C:\Sohodox Databases folder)

After this is configured, you will get a message confirming that Command Line action has been completed. Sohodox will now close.

**If Sohodox is installed on multiple machines** Copy the multi-user.gdx file from the ITAZ\Sohodox folder located on the machine on which Sohodox is installed in the Server mode. Now paste the copied multi-user.gdx file in the ITAZ\Sohodox folder on all the machines on which Sohodox is installed.

 

3. When you want to reset the cache for the DB, follow the step below...

Close Sohodox and Open the Command Line window on the machine on which Sohodox is installed in Server mode.
In the Command Line window type the following at the cursor...

  "C:\Program Files\Sohodox Desktop\Sohodox.exe" /resetcachedb /dbid=1

       (Assuming that Sohodox is installed in the default location.)

Now, hit the Enter key.

Sohodox will now launch and automatically reset the cache for the specific DB.

After this is configured, you will get a message confirming that Command Line action has been completed. Sohodox will now close.

 

 


Page URL: http://www.sohodox.com/docs/help/index.htm?command_line_options.htm