VACOLS VM Trigger Fix M1 - department-of-veterans-affairs/caseflow GitHub Wiki
Download VACOLS_VM_trigger_fix_M1.zip and follow the instructions below
ON THE VACOLS VM:
- Log in to VACOLS VM (UTM)
- Oracle password is password
- Open a command prompt (search ‘cmd’ from start menu)
- Type sqlplus '/ as sysdba’ (include the single quotes) to run the SQL*Plus command line utility
- In SQL*Plus, run the following SQL command:
- GRANT CREATE TRIGGER TO VACOLS_TEST;
- Don’t forget the semicolon at the end!
- You should see “Grant succeeded” after running the command
- You can leave this open for the last steps
ON YOUR LOCAL MACHINE:
- Open SQLDeveloper and create a new connection to the VACOLS DB with the following settings:
- Name: vacols_test
- Username: VACOLS_TEST
- Password: VACOLS_TEST
- Hostname: localhost
- Port: 1521
- SID: BVAP
- After saving the connection, find it in “Connections” window on the left side of the program and click the “+” to connect and expand it
- Expand the “Triggers” folder
- For each trigger:
- Click to open it in the editor
- Replace all of the code for the trigger with the code from the associated file in the zip file above
- Save the file
- Verify that the “messages” window that pops up at the bottom of the screen says “Compiled” and does not say with errors
ON THE VACOLS VM (again):
- If you closed SQL*Plus, follow steps 1-3 to open it again
- In SQL*Plus, run the following SQL command:
- REVOKE CREATE TRIGGER FROM VACOLS_TEST;
- Don’t forget the semicolon at the end!
- You should see “Revoke succeeded” after running the command
- Type ‘exit’ to exit SQL*Plus and close the command prompt