- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Database import with data only; receives ORA-2...
Operating System - HP-UX
1753776
Members
7605
Online
108799
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2008 08:12 AM
тАО06-05-2008 08:12 AM
Database import with data only; receives ORA-28101
Hi.
Performing an Import on Oracle 10g Release 2.
Table Objects already exist but want data only imported. I receive an error ORA-28101 during import but data is restored.
I am using parameters full=n ignore=y rows=y.
Does anyone know how to import data with table objects already existing in the database ?
Performing an Import on Oracle 10g Release 2.
Table Objects already exist but want data only imported. I receive an error ORA-28101 during import but data is restored.
I am using parameters full=n ignore=y rows=y.
Does anyone know how to import data with table objects already existing in the database ?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2008 09:35 AM
тАО06-05-2008 09:35 AM
Re: Database import with data only; receives ORA-28101
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2008 10:10 AM
тАО06-05-2008 10:10 AM
Re: Database import with data only; receives ORA-28101
You've got a policy on the table already when it was created, and when importing it's trying to put the policy on again.
Maybe try adding "CONSTRAINTS=N" to your import.
This might turn off the fine grain policy features.
Or.... if it's telling what the table is that's failing the duplicate policy name - you could just turn off the policies for that table.
At this link:
http://www.en8848.com.cn/Reilly%20Books/books/oracle/guide8i/ch07_03.htm
There is an example - but it's for Oracle 8i - check your documentation for a 10g version and see if it's different/better/etc. There may even be a "DISABLE" policy command by now, instead of having to drop the policy that might work for you.
You could use the example below to drop the policy on the table, then do your import. Of course, you'd have to make sure that at the end, the policies are all back from the import after it is finished.
-------------------------------------
The following procedure uses the DBMS_RLS package's DROP_POLICY procedure to drop all policies for a specific schema and database object:
/* Filename on companion disk: droppol.sp */
CREATE OR REPLACE PROCEDURE drop_policy (
objname IN VARCHAR2,
polname IN VARCHAR2 := '%',
objschema IN VARCHAR2 := NULL)
AUTHID CURRENT_USER
IS
BEGIN
FOR rec IN (
SELECT object_owner,
object_name,
policy_name
FROM ALL_POLICIES
WHERE object_owner LIKE NVL (objschema, USER)
AND object_name LIKE objname
AND policy_name LIKE polname)
LOOP
DBMS_RLS.DROP_POLICY (
rec.object_owner, rec.object_name, rec.policy_name);
END LOOP;
END;
/
----------------------------
Maybe try adding "CONSTRAINTS=N" to your import.
This might turn off the fine grain policy features.
Or.... if it's telling what the table is that's failing the duplicate policy name - you could just turn off the policies for that table.
At this link:
http://www.en8848.com.cn/Reilly%20Books/books/oracle/guide8i/ch07_03.htm
There is an example - but it's for Oracle 8i - check your documentation for a 10g version and see if it's different/better/etc. There may even be a "DISABLE" policy command by now, instead of having to drop the policy that might work for you.
You could use the example below to drop the policy on the table, then do your import. Of course, you'd have to make sure that at the end, the policies are all back from the import after it is finished.
-------------------------------------
The following procedure uses the DBMS_RLS package's DROP_POLICY procedure to drop all policies for a specific schema and database object:
/* Filename on companion disk: droppol.sp */
CREATE OR REPLACE PROCEDURE drop_policy (
objname IN VARCHAR2,
polname IN VARCHAR2 := '%',
objschema IN VARCHAR2 := NULL)
AUTHID CURRENT_USER
IS
BEGIN
FOR rec IN (
SELECT object_owner,
object_name,
policy_name
FROM ALL_POLICIES
WHERE object_owner LIKE NVL (objschema, USER)
AND object_name LIKE objname
AND policy_name LIKE polname)
LOOP
DBMS_RLS.DROP_POLICY (
rec.object_owner, rec.object_name, rec.policy_name);
END LOOP;
END;
/
----------------------------
We are the people our parents warned us about --Jimmy Buffett
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2008 08:08 PM
тАО06-05-2008 08:08 PM
Re: Database import with data only; receives ORA-28101
hi,
As mentioned above, the error message is related to some "policy" existing on the objects you are trying to import.
the simplest way to export/import table data (only) is to specify parameters:
ignore=y
constraints=n
indexes=n
grants=n
tables=('')
The most important check that you must perform is whether the number of records exported is same as the number of records imported.
Question: Why would you want to import data into an existing table?
Good luck!
kind regards
yogeeraj
As mentioned above, the error message is related to some "policy" existing on the objects you are trying to import.
the simplest way to export/import table data (only) is to specify parameters:
ignore=y
constraints=n
indexes=n
grants=n
tables=('
The most important check that you must perform is whether the number of records exported is same as the number of records imported.
Question: Why would you want to import data into an existing table?
Good luck!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP