Export system or sys schema

If I am using imp/exp export schema system and sys, is it possible?

Girish Sharma wrote:
Sir,
As per your saying that SYS will not be included in export i tried following command and i got SYS schema exported:
In windows:
exp 'sys/pw@orcl as sysdba' owner=sys file=xx.dmp feedback=10 log=xx.dmp
In Linux:
expdp \'sys/pw@orcl as sysdba\' schemas=sys dumpfile=xx.dmp logfile=xx.logLike other has suggested, you can run exp/expdp doesn't mean you get it exported. See some example,
%exp sys  owner=sys file=test.dmp
Username: sys as sysdba
Password:
Connected to: Oracle Database 10g Enterprise Edition
Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses AL32UTF8 character set (possible charset conversion)
About to export specified users ...
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user SYS
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user SYS
About to export SYS's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting materialized views
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting statistics
Export terminated successfully with warnings.As you can see no objects are listed as exported.
This Oracle metalink has this explained
Schema's CTXSYS, MDSYS and ORDSYS are Not Exported
Doc ID: Note:228482.1
Also if you check $ORACLE_HOME/rdbms/admin/catexp.sql
which is the script to Creates internal views for Export/Import utility
You will see
CREATE OR REPLACE VIEW exu81obj AS
        SELECT  o$.*
        FROM    sys.obj$ o$, sys.user$ u$
        WHERE   BITAND(o$.flags, 16) != 16 AND
                /* Ignore recycle bin objects */
                BITAND(o$.flags, 128) != 128 AND
                o$.owner# = u$.user# AND
                u$.name NOT IN ('ORDSYS',  'MDSYS', 'CTXSYS', 'ORDPLUGINS',
                                'LBACSYS', 'XDB',   'SI_INFORMTN_SCHEMA',
                                'DIP',     'DMSYS', 'DBSNMP', 'EXFSYS',
                                'WMSYS')These database dictionary metadata schemas are deliberately excluded.
-hint- Maybe be by changing this script, you can get them included ;)
But don't take my word on that, changing DB dictionary is not supported in anyway.
>
Please quote your valuable suggestations because as per your saying i argued in a long debate with my friends that "we can not take export of sys's schema, because Ying sir is saying like that". I shall be highly informative on your feedback please.
I appreciate you take my word so seariously and I am glad I didn't let you down in this case.

Similar Messages

  • Some objects in sys schema not imported usinf full database import/export.

    Hello All,
    We need to migrate database from one server to new server using same database version 11g Release 2 (11.2.0.1.0). We have some production objects in sys schema. We took full export using full=y and then import on new server using full=y. Other objects belonging to different tablespaces and users has successfully imported but production objects i.e table in sys schema not import.
    We used following commands for export and import:
    # exp system file=/u01/backup/orcl_full_exp.dmp log=/u01/backup/orcl_full_exp.log full=y statistics=none
    # imp system file=/u01/backup/orcl_full_exp.dmp log=/u01/backup/orcl_full_imp.log full=y ignore=y
    Kind Regards,
    Sharjeel

    Hi,
    First of all it is not good practice to keep user object in the sys schema
    second you are useing version 11gr2 what not you go for datapump export/import method.
    third, did you get any error in import, what is the error

  • Is it possible to export tables from diffrent schema using expdp?

    Hi,
    We can export tables from different schema using exp. Ex: exp user/pass file=sample.dmp log=sample.log tables=scott.dept,system.sales ...But
    Is it possible in expdp?
    Thanks in advance ..
    Thanks,

    Hi,
    you have to use "schemas=user1,user2 include=table:"in('table1,table2')" use parfileexpdp scott/tiger@db10g schemas=SCOTT include=TABLE:"IN ('EMP', 'DEPT')" directory=TEST_DIR dumpfile=SCOTT.dmp logfile=expdpSCOTT.log{quote}
    I am not able to perform it using parfile also.Using parfile it shows "UDE-00010: multiple job modes requested, schema and tables."
    When trying the below, i get error
    {code}
    bash-3.00$ expdp directory=EXP_DUMP dumpfile=test.dmp logfile=test.log SCHEMAS=(\'MM\',\'MMM\') include=TABLE:\"IN\(\'EA_EET_TMP\',\'WS_DT\'\)\"
    Export: Release 10.2.0.4.0 - 64bit Production on Friday, 15 October, 2010 18:34:32
    Copyright (c) 2003, 2007, Oracle. All rights reserved.
    Username: / as sysdba
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Starting "SYS"."SYS_EXPORT_SCHEMA_01": /******** AS SYSDBA directory=EXP_DUMP dumpfile=test.dmp logfile=test.log SCHEMAS=('MM','MMM') include=TABLE:"IN('EA_EET_TMP','WS_DT')"
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 0 KB
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    . . exported "MM"."EA_EET_TMP" 0 KB 0 rows
    ORA-39165: Schema MMM was not found.
    Master table "SYS"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
    Dump file set for SYS.SYS_EXPORT_SCHEMA_01 is:
    /export/home/nucleus/dump/test.dmp
    Job "SYS"."SYS_EXPORT_SCHEMA_01" completed with 1 error(s) at 18:35:19
    {code}
    When checking expdp help=y shows :-
    {code}TABLES Identifies a list of tables to export - one schema only.{code}
    As per few testing,tables from different schemas are not possible to export using expdp in a single command.
    Anand

  • Security about SYSTEM and SYS users

    Guys,
    Just curiosity,
    1) What happens if I logged with a user that have DBA role or DROP USER privilege and to drop the SYSTEM or SYS user ? This is possible ? If yes, how can protect them ?
    2) I know that the SYS is owner of the dictionary and catalog, but what is the objective of the SYSTEM user to exists ?
    Tank you.

    Hi,
    As you say, SYS is the owner of the database and the owner of the data dictionary.
    But SYS has the SYSDBA privilege which SYSTEM doesn't. This makes it possible for SYS to become a very very powerful user. In addition, never ever create objects in the SYS schema. SYSTEM is a privileged administration user, and typically owns Oracle provided tables other than the dictionary.
    Making a test.
    oracle@linux:~> sqlplus
    SQL*Plus: Release 9.2.0.4.0 - Production on Thu Dec 7 08:55:51 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Enter user-name: / as sysdba
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 126948772 bytes
    Fixed Size 452004 bytes
    Variable Size 104857600 bytes
    Database Buffers 20971520 bytes
    Redo Buffers 667648 bytes
    Database mounted.
    Database opened.
    As Frederic showed
    SQL> drop user sys cascade;
    drop user sys cascade
    ERROR at line 1:
    ORA-01031: insufficient privileges
    SQL> drop user system cascade;
    User dropped.
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 126948772 bytes
    Fixed Size 452004 bytes
    Variable Size 104857600 bytes
    Database Buffers 20971520 bytes
    Redo Buffers 667648 bytes
    Database mounted.
    Database opened.
    SQL>
    If you like to protect it, you can do this below:
    eg:
    create table secured_objects(object_name varchar2(30));
    Table created.
    SQL> insert into secured_objects values ('SYSTEM');
    1 row created.
    SQL> select * from secured_objects;
    OBJECT_NAME
    SYSTEM
    1 rows selected.
    create or replace trigger check_beforedrop
    before drop on database
    declare
    oname char(30);
    begin
    select object_name into oname from secured_objects
    where upper(object_name)=ora_dict_obj_name;
    if sql%found then
    RAISE_APPLICATION_ERROR(-20001,'You have not permission to drop this object.');
    end if;
    exception
    when no_data_found
    then dbms_output.put_line('This object was dropped.');
    end;
    SQL> drop user system cascade;
    drop user system
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-20001: You have not permission to drop this object.
    ORA-06512: at line 7
    Reference: http://www.adp-gmbh.ch/ora/misc/sys_system_internal.html
    Cheers

  • Jdbc driver in non-SYS schema

    Hello,
    I want to use another JDBC driver because the driver that Aurora uses is fault while I'm connecting to the remote database from my Java stored program.
    I've loaded the new driver_classes.zip with loadjava in SCOTT schema, all classes are valid.
    How I can order to my Java stored program to use new oracle.jdbc.driver.OracleDriver from SCOTT scema instead of "native" Aurora JDBC driver placed in SYS schema?
    Thanx.
    dannis.

    I assume you want to connect to remote Oracle database? Which error are your seing with the server-side JDBC-Thin? I'd suggest to have it fixed instead.
    Anyway, here is a Copy-paste from my OracleJVM security article
    OracleJVM prevents users from replacing system classes or loading new classes into system packages. If a user wants to load such classes into another schema, the user must be granted the JServerPermission (LoadClassInPackage.<class>) permission.
    The following command grants user SCOTT permission to load classes into the oracle.aurora.* package:
    dbms_java.grant_permission('SCOTT', 'SYS:oracle.aurora.tools.*', null);
    Kuassi

  • Find sys schema for imp database in 9i

    Hi Experts,
    Based on ORACLE rcommandation, I will take exp/imp to full database to other server ( it is only way based on source DB condition)
    To avoid duplicated system objects, i run a sql to get a schema list
    ==============================
    SQL> select owner from dba_objects group by owner order by
    OWNER
    CRYSTAL
    CTXSYS
    MDSYS
    NWEKRANESES
    ODM
    ODM_MTR
    OWNER
    OE
    OLAPSYS
    ORDPLUGINS
    ORDSYS
    OUTLN
    PIDLPASCUA
    PM
    PUBLIC
    QS
    QS_ADM
    QS_CBADM
    OWNER
    QS_CS
    QS_ES
    QS_OS
    QS_WS
    SH
    SYS
    SYSTEM
    WKSYS
    WMSYS
    XDB
    32 rows selected.
    SQL>
    I am not sure which scheam is a system schema for oracle 9.0.06.0 in above SQL
    So that I only need to emp/imo user data and programmeing codes.
    by the way, Does sys schema stored user codes information or objects in there?
    Thanks for your help!
    JIM
    Edited by: user589812 on Apr 22, 2009 12:28 PM

    Thanks for your help.
    I got lots of message as
    Column : DESC[RIBE] {[schema.]object[@connect_identifier]}
    IMP-00019: row rejected due to ORACLE error 1
    IMP-00003: ORACLE error 1 encountered
    ORA-00001: unique constraint (SYSTEM.HELP_TOPIC_SEQ) violated
    Column : DESCRIBE
    Column : 9
    Column :
    IMP-00019: row rejected due to ORACLE error 1
    IMP-00003: ORACLE error 1 encountered
    ORA-00001: unique constraint (SYSTEM.HELP_TOPIC_SEQ) violated
    Column : DISCONNECT
    Column : 1
    Column :
    IMP-00019: row rejected due to ORACLE error 1
    IMP-00003: ORACLE error 1 encountered
    ORA-00001: unique constraint (SYSTEM.HELP_TOPIC_SEQ) violated
    Column : DISCONNECT
    Column : 2
    Column : DISCONNECT
    IMP-00019: row rejected due to ORACLE error 1
    IMP-00003: ORACLE error 1 encountered
    ORA-00001: unique constraint (SYSTEM.HELP_TOPIC_SEQ) violated
    Column : DISCONNECT
    I am reviewing your paperlink that ia ver usefull.
    As DBA_mike said, it seems there are a potential issue if user creates object by system account.
    This is very old DB without archived and documents. we need to migreated to 10g/11i
    Thanks
    JIM

  • Inline plsql_optimize_level=3 and recompiling the sys schema??

    Has anyone messed around with 11g’s new inline pragma?
    I turned it on in a few packages which contains a lot of looping and it reduced the number subprocedure calls in the order of a few thousand. Because the db mainly servers web pages via mod_plsql, I found it to make pages just a tad snappier.
    It seemed to work pretty well that I altered the system with plsql_optimize_level=3 and recompiled the entire schema.
    This along with native compilation has made the website run the fastest I’ve ever seen it run. (I’ve already tuned sql statements and the sga size, so it was already running pretty fast.) Now it's just crazy quick.
    I only wish that standalone functions would also get “inlined”. I have a few functions like “format_money()” which will not get inlined unless they moved inside of packages (or in the declaration of calling standalone procedure).
    I’m wondering if anyone has set plsql_optimize_level=3 and recompiled the system schema? I recompiled sys.htp, sys.htf and sys.owa* packages just for fun. I didn’t do any metrics to gage the speed up. Just going off of feel, it does appear just a tad faster.
    I'm considering recompiling the entie sys schema and wondering if anyone has done this or recommends it?
    Edited by: brian.mcginity on Oct 9, 2011 12:59 PM

    Hi Ravshan,
    I thought a workaround would be to create a sql script like the following:
    alter session set plsql_code_type=native;
    alter session set plsql_optimize_level=3;  then point to it in the setting for Tools|Preferences|Database|Filename for connection startup script. That doesn't work however, as the other preference setting for plsql_optimize_level overrides the session value of 3 during compilation from the UI.
    According to Oracle documentation, level 3 was added for Oracle 11g. Prior to that, the same effect could be achieved by level 2 in conjunction with the INLINE pragma in the PL/SQL code.
    You might want to make a feature request for this on the SQL Developer Exchange so the community can vote and comment.
    Regards,
    Gary
    SQL Developer Team
    Edited by: Gary Graham on Feb 6, 2012 2:32 PM
    And, of course, Compile for Debug does not work with the 'native' setting.

  • Import sys schema

    hi
    im using oracle 9i on windows ...i export the sys schema....
    i want to import to another database..
    my queston is that before import to another database...can we create user or tablespace of old database. in new database....

    robinkhan wrote:
    hi
    im using oracle 9i on windows ...i export the sys schema....
    i want to import to another database..
    my queston is that before import to another database...can we create user or tablespace of old database. in new database....And why do you want to import SYS schema to another database? You cann't do it. DON'T try to do it. Or you'll corrupt your database! SYS schema containts all information about your database so DON'T play with it!

  • SYS schema blows up

    Hello all,
    Just wondering, where should I take a look to figure out, why SYS schema grows WILDLY in my sight... It was 8G on Apr 9, yesterday it became 11G, today in the morning it was 17G and after 3 hours it became 18G...
    SYSTEM tbs doesn't increases... I cannot understand, where the segments that belong to SYS and make it so bog go..
    Please, tell me where to look and chek, what the heck is going on and is coercing SYS schema to grow...
    Thanks a lot,
    M.

    Workload Repository also drops older partitions as it creates new ones.
    By default, it maintains 7 days data.
    You should query DBA_SEGMENTS to get the total sizes
    SELECT TABLESPACE_NAME, SEGMENT_TYPE, SUM(BYTES)/1048576 Total_MB
    FROM DBA_SEGMENTS
    WHERE OWNER='SYS'
    GROUP BY TABLESPACE_NAME, SEGMENT_TYPE
    ORDER BY 1,2
    /

  • Exporting and Importing of Schema

    The Export and Import of Schema is not working consistently in SP4.
    When I create a new repository from the schema, all the subtables get created. The main table is has only one field in it. It reads Category.
    The other fields in the main table are missing and are not imported during the Import Schema operation.
    Has anyone encountered the same issue?
    If so, please let me know how you overcame this errorneous behaviour?

    Hi Adhappan
    I have tried importing without success. The import is not consistent. The same schema creates different sets of tables & fields each time. Sometimes if you reimport some more tables which were not set up the first time gets selected for import.
    I did a simple exercise to test the import / export functionality.
    1. I unarchived a repository from standard content provided by SAP
    2. I exported the schema
    3. I tried importing the schema without any modifications to schema
    4. The results were highly inconsistent.
    Arvind
    Pls reward useful answers

  • How to restore a single table from a DP Export from a different schema?

    Environment:
    Oracle 11.2.0.3 EE on Solaris
    I was looking at the documentation on DP Import trying to find the correct syntax to import a single table from a DP Export of a different schema.
    So, I want to load table USER1.TABLE1 into USER2.TABLE1 from a DP Export.
    Looking at the REMAP_TABLE options:
    REMAP_TABLE=[schema.]old_tablename[.partition]:new_tablename
    OR
    REMAP_TABLE=[schema.]old_tablename[:partition]:new_tablenameI can't see where to specify the target schema name. The examples had the new table name residing in the same schema with just a new name.
    I looked at the REMAP_SCHEMA but the docs say that will import the entire schema into the new schema and I only want one (1) table.
    Any suggestions are most welcome!
    -gary

    I thought I tried that combination and it seemed to me that the REMAP_SCHEMA somehow over-rode the TABLES= parameter >and started loading all the objects.If it does fail (and it should not) then please post the details here and I will try to see what is happening.
    Let me get back into the sandbox and try it again. I admit I was in a bit of a hurry when I did it the first time.We are all in a hurry, no worries. If it fails, please post the details and the log file.
    Does it make any sense that one parameter would override another?No, this should never happen. We have tons of checks to make sure the job can't have multiple meanings. For example, you can't say
    full=y schemas=foo --- Which do you want, a full export or a list of schema exports, etc.
    Your suggestion was the first thing I thought would work.This should work. If not, please post the log file with the command and the results.
    Dean
    Thanks again for the help and stay tuned for my new attempt.
    -gary

  • SYSTEM and SYS password 11g on Windows Vista

    Hello
    I am having trouble. I do not know my SYSTEM and SYS passwords. I am using oracle 11g on windows vista. I tried to change the passwords but that did not work. I tried this:
    c:/>sqlplus "/ as sysdba"
    c:/>show user
    c:/>passw system
    then I changed the password. When I tried to log in the password change did not take effect. Any help would be great!

    Hi,
    There is no default password for sys and system in 11g.
    you cna use the below command to change the system or sys password
    alter user SYSTEM identified by PASWORD
    same for sys
    nOTE: password are case sensitive.Regards,
    Taj

  • Java error while trying download jar file into SYS Schema

    Hi,
    I am trying to use UTL_DBWS package for Consuming Web Services in Oracle 10.2.0.4
    I donwloaded latest copy of the dbwsclient.jar file from the below link.
    http://www.oracle.com/technology/sample_code/tech/java/jsp/dbwebservices.html
    I chose the below option for downloading the jar file since i use 10.2.0.4 oracle version.
    10.1.3.1 Callout Utility for 10g and 11g RDBMS (ZIP, ~13MB)
    I tried to download the jar file into SYS schema using the below command.
    loadjava -u sys/password -r -v -f -genmissing -s -grant public D:\oracle\Product\10.2.0\DB_1\sqlj\lib\dbwsclientws.jar D:\oracle\Product\10.2.0\DB_1\sqlj\lib\dbwsclientdb102.jar
    But i keep getting the below error.
    class oracle/security/wss/interceptors/ClientSecurityDescriptor: resolution
    existing : Failures occurred during processing
    Can you please advice how do i resolve this error.
    Regards,
    MSP

    I suspect that there is more to the error message than what you are reporting.
    If so please post the entire message.

  • To export system language to a browser using CALL_BROWSER

    Hello Experts,
    I am triggering a search help exit with the search help in my R\3 system, which indirectly takes me to the netweaver system via RFC. In the Netweaver function module I have used the call_browser FM to call a browser. While defining the URL I want to export the system language ( the one where my search help is present) in the browser. Please let me know , by calling which FM in my Netweaver system I can export system language parameter to the browser.

    Hi Calvin!
    This isn't possible. Applets just can handle events inside its phisical area as they run in a security model called "sandbox". Using class netscape.javascript.* possiblies interaction between applets and javascripts but there are many constraints and finally method "showDocument()" just open a new http address.
    Regards.

  • Password for SYSTEM or SYS

    HI,
    I have installed Oracle 10g DB on XP. After installation of ORACLE DB, "DATABASE CONFIGURATION ASSISTANT" dialog box came, but i mistakenly click on OK button instead of clicking on PASSWORD MANAGEMENT to set the password for SYSTEM / SYS.
    Now when i am trying to login using user id and password, SYSTEM or SYS with password either by Oracle or CHANGE_ON_INSTAL then error is coming as :
    ERROR: ORA-01017: invalid username/password; logon denied
    DB installation was done on my laptop for testing / learning purpose only.
    Would you pls. help to login as SYSDBA / SYSOPER using SYSTEM or SYS ID.
    Thanks

    HI,
    On UNIX the Oracle executable has two group names compiled into it,one for SYSOPER and one for SYSDBA.
    These are known as the OSOPER and OSDBA groups.Typically these can be set when the Oracle software is installed.
    In this case when you issue the command 'CONNECT / AS SYSOPER' Oracle checks if your Unix logon is a member of the 'OSOPER' group and if so allows you to connect. Similarly to connect as SYSDBA your Unix logon should be a member of
    the Unix 'OSDBA' group.
    Please check whether the user belongs to OSOPER group.
    thanks,
    Krishna

Maybe you are looking for