Quantcast
Channel: Primavera Online Interaction » PMDB
Viewing all articles
Browse latest Browse all 92

prim11793:How to delete a users preference settings (Edit, Users Preferences) if the account is corrupted?

$
0
0
Solution ID: prim11793
How to delete a users preference settings (Edit, Users Preferences) if the account is corrupted?
Status: Reviewed
Version(s): 3.0, 3.1, 3.5, 3.5.1, 4.0, 4.1, 5.0, 6.0, 6.1, 6.2, 6.2.1

Problem: How to delete a users preference settings (Edit, Users Preferences) if the account is corrupted?
Problem: How to delete a user’s preference settings (Edit, Users Preferences) if their profile is corrupted?

Notes:



  • Please backup a copy of your database prior to running the below SQL statements.

  • It is suggested that a DBA or equivalent user execute the queries below.
Problem: How to reset the User Preferences data if it becomes corrupt.
Problem: P6 Crashes after login
Problem: How to delete from userdata table
Problem: Unable to save scheduling options.
Problem: AVAA or AVAAO errors in layouts after upgrading from version 5.0 to P6.
Problem: Login hangs at 98%.
Problem: P5 freezes in standalone database.
Problem: Project Management v5.0 hangs (standalone install only).
Problem: Project management 5.0 hangs at 98% (standalone install only).
Fix:

Have the database administrator perform the following instructions.


NOTE: It is advisable to always create a backup of the database prior to making modifications with manual scripts.



  1. Log into the affected database:
     
    For Oracle:  Log into the instance with the administrative user for the schema (e.g. “admuser”)
     
    For SQL Server:  Launch Microsoft Query Analyzer and login as “privuser”
     
    For MSDE:  Open a dos command window (Start > Run >  type ‘cmd’, hit OK)  and log into the instance with OSQL with the following command:
     
                osql -U sa -P password -S server\instance -d database
     
                (where ‘password’ is the administrative password,
                            ’server’ is the name of the MSDE server,
                            ’instance’ is the instance name if applicable,
                            ‘database’ is the name of the database’)
     
    For Interbase:  Launch the Interbase Console, connect to the database in question and login as sysdba/masterkey
     
  2. Delete the user preferences by running the following script:
     
    Update userdata set user_data = null where topic_name = ‘pm_settings’ and user_id in (select user_id from users where user_name = ‘<username>’)


-where <username> is the user’s login id for Project Management


Note: This will cause the user account to lose all user defined preferences within the software – they will be reset to default settings ( durations in days, show time, etc)  User baselines, layouts, filters, etc. will still be there.

Fix: To delete a user’s preference settings in SQL Server, do the following:

Project Management Instructions:



  1. Go to Query Analyzer.

  2. Login using the privuser username/password.

  3. Type: Select * from users where user_name =’admin’ and run the statement. NOTE: REPLACE admin with DESIRED LOGIN NAME and note the user_id for the user in question.  



     

  4. Type the following: Delete from userdata where user_id=<number found in step 3> and topic_name=’pm_settings’  Run the statement. 

  5. Login to Project Management as the user, and the user preferences will be re-created as default.

myPrimavera/P6 Web Instructions:



  1. Go to Query Analyzer.

  2. Login using the privuser username/password.

  3. Type: Select * from users where user_name =’admin’ and run the statement. NOTE: REPLACE admin with DESIRED LOGIN NAME and note the user_id for the user in question.

  4. Type the following: Delete from userdata where user_id=’<number found in step 3>’ and topic_name=’pweb_settings’  Run the statement. 

  5. Login to myPrimavera/P6 Web as the user, and the user preferences will be re-created as default.

Note: This will cause the user account to lose all user defined preferences within the software – they will be reset to default settings ( durations in days, show time, etc)  User baselines, layouts, filters, etc. will still be there.

Fix:

To delete a user’s preference settings in Oracle, do the following:


Project Management Instructions:



  1. Run SQL*Plus.

  2. Login in as admuser or equivalent Oracle user.

  3. Type: Select * from users where user_name =’admin’ and run the statement. NOTE: REPLACE admin with DESIRED LOGIN NAME and note the user_id for the user in question.

  4. Type the following: Delete from userdata where user_id=’<number found in step 3>’ and topic_name=’pm_settings’  Run the statement.

  5. Login to Project Management as the user, and the user preferences will be re-created as default.

myPrimavera/P6 Web Instructions:



  1. Run SQL*Plus.

  2. Login in as admuser or equivalent Oracle user.

  3. Type: Select * from users where user_name =’admin’ and run the statement. NOTE: REPLACE admin with DESIRED LOGIN NAME and note the user_id for the user in question.

  4. Type the following: Delete from userdata where user_id=’<number found in step 3>’ and topic_name=’pweb_settings’  Run the statement.

  5. Login to myPrimavera/P6 Web as the user, and the user preferences will be re-created as default.

Note: This will cause the user account to lose all user defined preferences within the software – they will be reset to default settings ( durations in days, show time, etc)  User baselines, layouts, filters, etc. will still be there.

Fix:

To delete a user’s preference settings in MSDE (for Project Management 5.0 stand-alone), do the following:


Project Management Instructions:




  • Open a MS-DOS Command Prompt window



    • Login to osql by typing the following:



osql -U sa -P prima -S localhost\primavera -d pmdb$primavera




    • If the login is successful, you will get to a 1> prompt

    • Type:



1>delete from userdata where user_id =25 and topic_name=’pm_settings’
        Then hit <Enter>
2>go 
        Then hit <Enter>


Where user_id = the user_id of the user that is corrupt.  See step 3 in first fix statement above.



  • Login to Primavera as the user, and the user preferences will be re-created as default.

myPrimavera/P6 Web Instructions:




  • Open a MS-DOS Command Prompt window



    • Login to osql by typing the following:



osql -U sa -P prima -S localhost\primavera -d pmdb$primavera




    • If the login is successful, you will get to a 1> prompt

    • Type:



1>delete from userdata where user_id =25 and topic_name= ‘pweb_settings’  
        Then hit <Enter>
2>go 
        Then hit <Enter>


Where user_id = the user_id of the user that is corrupt.  See step 3 in first fix statement above.



  • Login to myPrimavera/P6 Web as the user, and the user preferences will be re-created as default.

Note: This will cause the user account to lose all user defined preferences within the software – they will be reset to default settings ( durations in days, show time, etc)  User baselines, layouts, filters, etc. will still be there.


Viewing all articles
Browse latest Browse all 92

Trending Articles