Just modifying the schema is not enough. Before
USVD can use the new or modified tables, the database dictionary
must be updated and the database tables rebuilt. The following
steps describe the process of rebuilding the AHD
database.
Step 1:
Does you database already contain data that you
want to preserve? If NOT, skip to step 3
Step 2:
Rebuilding an existing table removes all data in
that table. Make a backup of all tables that are going to be
rebuilt using ‘pdm_extract’.
Synstax: pdm_extract
AHDTablename > outputfile
Tables to backup are: Contact, Call_Req,
Change_Orders.
Examples:
pdm_extract Contact
> cnt.txt
pdm_extract Call_Req
> cr.txt
…
Step 3:
Run
‘pdm_configure’.
-
Enter the
correct Server Node name: DSRV443
-
You must
enter the passwords for the Service Desk and the Restricted User
accounts
-
Enter the
correct Mail Profile
-
Enter the
correct Database name: AHD
-
Enter the
correct Database node: DSRV443
-
Enter the
correct Database password: PASSWORD
-
Important! ONLY if you skipped step 2,
select the “Reinitialize Database checkbox”. This
option completely creates a new data dictionary and SQL database,
removing ALL existing data.
-
Select
the “ITIL form” checkbox
Step 4:
This step depends on whether you reinitialized the
database or not.
If you did reinitialize then the configure program
already created all SQL tables for you so you can skip the rest of
this procedure.
If you didn’t then the new tables and fields
should also be created in SQL. To do this, run the sqlbuild command
for each added or modified table:
Syntax: sqlbuild
–p tablename database
ddlictlocation
Tables to build are: Contact, Call_Req,
Change_Orders, zLanguage, ZRes_Ver.
Examples:
sqlbuild –p
Contact AHD $NX_ROOT\site\ddict.sch
sqlbuild –p
Call_Req AHD $NX_ROOT\site\ddict.sch
…
Step 5:
After running sqlbuild you can then import the
extracted data again using
‘pdm_userload’.
Syntax: pdm_userload
–f filename
Examples:
pdm_userload
–f cnt.txt
pdm_userload
–f cr.txt
…