Ask the Expert

Issuing a truncate tablename

I am implementing a PeopleSoft EPM solution. The product uses Informatica, which wants to truncate a table in the SYSADM schema. I have created an ID "infoID" and granted that ID "DROP TABLE" system privileges. As long as infoID gives a fully qualified name (TRUNCATE SYSADM.tablename) it works. However, there is no way to tell Informatica it has to use a fully-qualified name. Can you tell me how to set up the infoID so that it can issue a truncate tablename without having to give a fully-qualified name.

    Requires Free Membership to View

There are a few possible solutions that come to mind. First, set up a SYNONYM that INFOID owns that points to the SYSADM table. Then, when Informatica tries to truncate the "table" it will be using the synonym that points to the correct table instead. Another solution which may or may not be possible is to create a stored procedure to truncate the table and have Informatica just execute that procedure instead of truncating the table.

This was first published in January 2004

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: