Synonym name in SQL Loader [message #71791] |
Mon, 13 January 2003 07:29 |
Deborah
Messages: 18 Registered: June 2002
|
Junior Member |
|
|
Can I put synonym name instead of table name
in the sql loader control script? I am having
some queer phenomena in some testings.
Also would the following work, if synonym name
is allowed:
....
2) INFILE *
3) TRUNCATE INTO TABLE SYN_ITEM_MSTR
.....
(stress is on line 3)
also can I do the following?
SQL> TRUNCATE TABLE SYN_ITEM_MSTR;
(SYN_ITEM_MSTR is a synonym to ITEM_MSTR table in
the same schema)
TIA,
Debby
|
|
|
|
Re: Synonym name in SQL Loader Pretty Queer [message #71793 is a reply to message #71792] |
Mon, 13 January 2003 08:03 |
Deborah
Messages: 18 Registered: June 2002
|
Junior Member |
|
|
Well, while I tried to truncate a synonym,
SQL> TRUNCATE TABLE SYN_ITM_MSTR;
I found this error instead:
ORA-04020: deadlock detected while trying to lock object 3478168772389872276476874988
this was the first queer observation.
The synonym name and actual table name are different.
The owner is same, though (Not public syn either).
But The queer thing I mentioned earlier was that, in
the sqlloader script, the synonym name is working fine
even with "TRUNCATE INTO TABLE <SYN_NAME>" OPTION.
I am using Oracle 8.1.5
Bottomline: All I wanted to know is
"How safe is it to use syn name in sqlloader ctl file.
As I would like programmers to use the syn name rather
than the table name"
TIA,
Debby
|
|
|