Script to update the Tablespace for all the records in the Project.
Script to update the Tablespace for all the records in the Project. when we import Project in the client instance, we can use this SQL to change the tablespace for all the records at time, rather changing it one by one.
Update PSRECTBLSPC
SET DDLSPACENAME = {NEW TABLESPACE}
WHERE DDLSPACENAME = {OLD TABLESPACE};
and RECNAME IN (Select A.OBJECTVALUE1 from PSPROJECTITEM A, PSRECDEFN B
Where A.PROJECTNAME = {PROJECTNAME} and A.OBJECTTYPE = 0 and A.OBJECTID1 = 1 and A.OBJECTVALUE1 = B.RECNAME and B.RECTYPE =0)
0 comments:
Subscribe to:
Post Comments (Atom)