Inserting records in table
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 497
- Joined: Sun Dec 17, 2006 11:52 pm
- Location: Kolkata
- Contact:
Inserting records in table
Hi All,
we have designed a simple job that loads data into a table using ODBC stage from a file. The records are imported from the file successfully , but it is unable to load in the database . The table to which it loads has been created in the database. The job is getting aborted with the error Create External Table Permission denied. The table is the Netezza table.
Thanx in advance.
we have designed a simple job that loads data into a table using ODBC stage from a file. The records are imported from the file successfully , but it is unable to load in the database . The table to which it loads has been created in the database. The job is getting aborted with the error Create External Table Permission denied. The table is the Netezza table.
Thanx in advance.
Re: Inserting records in table
The error itself seems to be self explanatory.pravin1581 wrote:Hi All,
we have designed a simple job that loads data into a table using ODBC stage from a file. The records are imported from the file successfully , but it is unable to load in the database . The table to which it loads has been created in the database. The job is getting aborted with the error Create External Table Permission denied. The table is the Netezza table.
Thanx in advance.
You need to allow(give access rights) to external sources (in this case odbc) to create tables in your database.
-
- Premium Member
- Posts: 497
- Joined: Sun Dec 17, 2006 11:52 pm
- Location: Kolkata
- Contact:
Re: Inserting records in table
The table is in the database , how can i give write access to the ODBC stage.siddesai wrote:The error itself seems to be self explanatory.pravin1581 wrote:Hi All,
we have designed a simple job that loads data into a table using ODBC stage from a file. The records are imported from the file successfully , but it is unable to load in the database . The table to which it loads has been created in the database. The job is getting aborted with the error Create External Table Permission denied. The table is the Netezza table.
Thanx in advance.
You need to allow(give access rights) to external sources (in this case odbc) to create tables in your database.
Re: Inserting records in table
Hi Pravin,pravin1581 wrote: The table to which it loads has been created in the database. The job is getting aborted with the error Create External Table Permission denied.
Your initial statement says the table is already in the database. Are you sure you want your insert process to create the table from the ODBC stage? Maybe you should check the properties of the stage to ensure that you haven't enabled that.
To check your permissions, login using your account id and password to the DB via Standard (Netezza) SQL Client UI or command interface and try creating a table. If that is allowed then your DBA has granted permissions for creating tables on the fly. If not, your project policies would dictate if table creation is required or if all tables are pre-created and users can only insert/update/delete records from the tables.
Some of the policies may allow creation of "#Temp" tables only.
HTH,
-V
-
- Premium Member
- Posts: 497
- Joined: Sun Dec 17, 2006 11:52 pm
- Location: Kolkata
- Contact:
Re: Inserting records in table
VCInDSX wrote:Hi Pravin,pravin1581 wrote: The table to which it loads has been created in the database. The job is getting aborted with the error Create External Table Permission denied.
Your initial statement says the table is already in the database. Are you sure you want your insert process to create the table from the ODBC stage? Maybe you should check the properties of the stage to ensure that you haven't enabled that.
To check your permissions, login using your account id and password to the DB via Standard (Netezza) SQL Client UI or command interface and try creating a table. If that is allowed then your DBA has granted permissions for creating tables on the fly. If not, your project policies would dictate if table creation is required or if all tables are pre-created and users can only insert/update/delete records from the tables.
Some of the policies may allow creation of "#Temp" tables only.
HTH,
That part has been handled , now i am stuck in another problem . There are certain conditions in the job like the server name, pwd, user , database and the datasource that have been parameterized and the table name has been hardcoded. When I am running the job with the dsjob command the job is getting aborted with the error as "Unrecognized argument:<TABLE NAME>, even though the table name is not passed as the parameter.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Premium Member
- Posts: 497
- Joined: Sun Dec 17, 2006 11:52 pm
- Location: Kolkata
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Premium Member
- Posts: 497
- Joined: Sun Dec 17, 2006 11:52 pm
- Location: Kolkata
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Premium Member
- Posts: 497
- Joined: Sun Dec 17, 2006 11:52 pm
- Location: Kolkata
- Contact: