Imp/exp user/role issue

using 10.1.0.3 linux
Have an export file from an existing DB (full export). Need to import it into an blank DB but I get errors regarding users and roles not existing. I thought that a full export has all of that info to create in the new DB. How can I get this imported?

Hi,
That should work OK - i can only think there was a problem with the tablespaces getting created, so then the users failed to create and had a knock on effect in the rest of the export.
Can you paste the fist 50 lines or so of the import logfile?
Cheers,
Harry

Similar Messages

  • Dynamic grant user role issue

    Hi friends,
    I created a role in oracle 10 and can be granted to user one by one. it works.
    But I try to grant the role to all users and get error.
    my code as (copy and modify from OTN)
    ====
    DECLARE
    l_schema VARCHAR2(30) := 'SCHEMA_OWNER';
    BEGIN
    FOR i IN (SELECT USERNAME
    FROM all_users
    WHERE username not in ('SYS','SYSTEM','OUTLN','DMSYS','TSMSYS','XDB','CTXSYS','WMSYS','DBSNMP','DIP','OLAP','OLAPSYS','MDSYS','EXFSYS','MDSYS'))
    LOOP
    BEGIN
    EXECUTE IMMEDIATE 'GRANT USERS_SELECT ||' TO i.USERNAME;
    EXCEPTION
    WHEN OTHERS THEN
    NULL;
    END;
    END LOOP;
    END;
    ORA-06550: line 10, column 41:
    PLS-00103: Encountered the symbol "TO" when expecting one of the following:
    * & = - + ; < / > at in is mod remainder not rem return
    returning <an exponent (**)> <> or != or ~= >= <= <> and or
    like LIKE2_ LIKE4_ LIKEC_ between into using || multiset bulk
    member SUBMULTISET_
    The symbol "* was inserted before "TO" to continue.
    SQL>
    I double check syntax is OK. what is wrong?
    Thanks for help!
    Jim

    Try:
    EXECUTE IMMEDIATE 'GRANT RAC_SELECT TO '|| i.USERNAME;And remove this part, which is for 99.99% a bug:
    EXCEPTION
    WHEN OTHERS THEN
    NULL;
    ENDOnly catch errors you expect...

  • Reg SAPJSF User role issue

    Dear Experts,
    I'm trying to disable password based log on for certain users in Portal and Portal uses the ABAP Stack as the repository (IT is a dual stack system).
    But when i log in as j2ee_Admin user and try to do this in the "Identity Management" section, i get the following error message
    "An error occurred in the persistence. The original message (possibly not translated) was: "Cannot update user UACC.R3_DATASOURCE.USER3 in ABAP backend system. Reason: The UME/ABAP adapter has recognized that the communication user is only assigned to the read-only role SAP_BC_JSF_COMMUNICATION_RO (or no role at all) in the backend system. Therefore UME was set to read-only mode for users from the backend system. See SAP Note 908911 for further information.". Contact your system administrator"
    I have checked the SAPJSF Roles too and i see the following there under "Assigned groups"
    Everyone
    SAP_BC_JSF_COMMUNICATION_RO
    SAP_BC_JSF_COMMUNICATION
    Authenticated Users
    Please let me know the way to overcome this problem.
    Regards,
    Karthik

    Hello Karthik
    According the SAP note 905188 - "Password change for ABAP users fails"
    "If the communication user (default name: SAPJSF) has the 'read-only'
    role (SAP_BC_JSF_COMMUNICATION_RO) in the ABAP system, users are no
    longer able to change their own password.
    This error is corrected with the following Support Packages:
        o  NetWeaver 2004: Support Package 16
        o  NetWeaver 2004s : Support Package 07
    Until the corrections are available, the following workaround is
    possible: Assign the additional role SAP_J2EE_GUEST to the communication
    user in the ABAP system and restart the J2EE Engine.
    This does not affect the authorizations of the communication user in the
    ABAP system."
    Please try to apply the note quoted above. I hope to help you!
    Álvaro Ferreira Raminelli

  • Minimum group membership for imp/exp for ora 8i(client)  windows xp users

    Hi to all,
    For oracle 8i clients, windows xp users, what is the minimum group membership required that can be used so that the users can import or export dmps. Using Administrators imp/exp works ok... Any alternative?
    Thanks

    Hi Thierry,
    Please do not confuse the issue. Here we have the windows Operating System - privilege and then the Oracle database user privilege. In my case the Oracle database user privilege is DBA. If the user is given a Windows - Administrators privilege (which I do want to give) the exp/imp creates the DMP and log file. But any other standard windows privilege (with DBA privilege) the exp/imp does not create the dmp and log file. I hope I am clear and now you can suggest some alternative solution to OS - administrator.
    Thanks again

  • Security Issues with the BP Internet user role creation--SU01

    Hi All,
    We are implementing the B2B Internet sales scenario using CRM 4.0. we
    have contact persons who logs in and chose the distributor and then
    start placing orders or look at product catalog .... Now contact person
    is created as a BP in CRM and relation ship is maintained to sold to
    (bp). During this process the contact person should be created under
    the Internet user role which uses the SU01. so we will be able to
    change password or change the roles of the users while creating BP
    under the internet user role -- same as what we do in SU01.
    This is now a security Issue because who ever can access the BP
    (create/change) will be able to do the things we can do under
    transaction SU01. But we still need to access the Internet user role in-order to assign the user id to the contact person . Is there any other
    way of doing this.
    Please advice ASAP.
    Thanks
    Vasu

    Hi Ashwini,
    you need to modify the logon routine and then in the user management (isauseradmin application) to do this. Then there are likely changes to the catalog identification, and very likely to most processes in the shop. I really wouldn't advise doing so. As accounts usually have contact persons: Why does your client insist in providing a login for the organization and not for a person?
    To achieve something that looks almost like the desired solution you, e.g., could model a dummy contact person for each account that shall get a logon, that then does the job. The contact person could be named like the company and then you are back to plain standard.
    Rgds
    Thomas

  • Use of imp/exp to restore a database will fail ??

    I have a database that uses mdsys and other user-defined objects. This week I've had the "pleasure" to try to restore a database from scratch using imp, but had to abandon because imp refuses to create tables if they refer to objects, that upon export had a different id than the database being imported to.
    Since mdsys for instance, is always excluded from exports (like sys and system) when you create a new database, the spatial objects are created with a different ID than the original database. Hence, every table you have with spatial data will not be imported.
    So imp only works if the internal object ids match.
    What would be the "imp/exp" procedure to do a full db restore that bypasses the above problem? Has datadump solved this issue?

    Correct - all schemas considered part of the dictinary are excluded (why has things become so complicated- in the old days we had ONE place where everything dictionary went).
    That's the problem. I have tables in my export that depends on MDSYS objects. In other words, spatial data. So, to re-create my database I must first create a database and ADD a MDSYS schema. So yes, I created the schema prior to import. The problem is, that the MDSYS objects then do not get the same object-ids. And there lies the problem. IMP will not import my tables with spatial data in them because the reference to the MDSYS objects do not match the object ID that was used during export. Why this rule is applied is the mystery.
    In addition, which I rote in the spatial forum, anything related to the mapviewer application is also placed in the MDSYS schema, excluding them from export; regardless that the data related to mapviewer is not related to database objects. The result is, that your Oracle Mapviewer application data is lost. The "official workaround" is to run pre-scripts that copy the dictionary views to fixed tables, then run your export. And on import you run a post-script to copy it back. Rather silly and inflexible.

  • 9i export file into 11GR2 - import full db or create users, roles.. first?

    I'm moving several 9iR2 databases onto new hardware with 11GR2 64bit.
    One of them has only a couple of users, roles etc. so I pre-create all the tablespaces, users, etc. then import with 11G imp utility using fromuser=user1,user2 etc. in the parfile.
    Another has an application front end that creates a database user for all the application users, and assigns certain roles etc. So I have dozens of users on this database, along with various roles as well. I'm wondering what the best way to approach this one is, so I'm thinking:
    Do I do a import full=y, and let the import create all the users roles etc. ? *I already pre-created all the tablespaces when I created the empty database with DBCA
    Do I generate the ddl for all the users and roles, run it on the new db first, then import with fromuser=user1,user2..?
    Do I import full=y for trial run, then when ready to import final production data, drop users that have data with cascade option, recreate these users and import their schemas only?
    Keep in mind that I am doing several "rehearsals" on this, importing from full exp files on the current production database, for users to test the app against and also to debug my import commands,scripts etc. so this will be a one command process when I am ready to do the final import.
    I'm asking all of this because I'm wondering if its just ok to do full=y when upgrading, (I usually don't)
    I'm assuming all the system etc. tables in the 11G are just left alone when ignore=y parameter is used.

    I tried importing the full database from the 11G gui's import from export files option, but it kept failing, so I imported just the schema's I wanted. That worked ok, and all the database users accounts and roles were also imported, not sure how that happened or if it was when I attempted the full import. In any case I got the database schemas I wanted over, but noticed a lot of invalid views that would not compile, so a further check showed that none of the applications public synonyms came over. Running a simple create script on dba_synonyms on the prod database fixed that and its all good now, but I'm wondering why the synonyms never came across with the import?

  • Can we migrate data from 7.3.4 to 10g? (imp / exp)

    Can we migrate data from 7.3.4 to 10g? (imp / exp)
    Please note: 7.3.4 is on Sun Solaris and 10g is on Linux x86, SuSE linux
    enetrprise server 8.0.
    But please remeber Direct upgrade is not supported from 7.3.4 to 10g. can we do
    migartion without any issue?

    Justin is correct, you can do that with exp 7.
    look on metalink for note 132904.1. Here is the matrix out of this note
    +-----------+------------------------------------------------------+
    | EXPORT | IMPORT into: |
    | from +--------+--------+--------+--------+--------+---------+
    | \/ | 8.1.5 | 8.1.6 | 8.1.7 | 9.0.1 | 9.2.0 | 10.1.0 |
    +-----------+--------+--------+--------+--------+--------+---------+
    | 5.x 1) 2)| EXP5x | EXP5x | EXP5x | EXP5x | EXP5x | EXP5x |
    | 6.x 2)| EXP6x | EXP6x | EXP6x | EXP6x | EXP6x | EXP6x |
    | 7.x 3)| EXP7x | EXP7x | EXP7x | EXP7x | EXP7x | EXP7x |
    +-----------+--------+--------+--------+--------+--------+---------+
    | 8.0.3 | EXP803 | EXP803 | EXP803 | EXP803 | EXP803 | EXP803 |
    | 8.0.4 | EXP804 | EXP804 | EXP804 | EXP804 | EXP804 | EXP804 |
    | 8.0.5 | EXP805 | EXP805 | EXP805 | EXP805 | EXP805 | EXP805 |
    | 8.0.6 | EXP806 | EXP806 | EXP806 | EXP806 | EXP806 | EXP806 |
    +-----------+--------+--------+--------+--------+--------+---------+
    | 8.1.5 | EXP815 | EXP815 | EXP815 | EXP815 | EXP815 | EXP815 |
    | 8.1.6 | EXP815 | EXP816 | EXP816 | EXP816 | EXP816 | EXP816 |
    | 8.1.7 | EXP815 | EXP816 | EXP817 | EXP817 | EXP817 | EXP817 |
    +-----------+--------+--------+--------+--------+--------+---------+
    | 9.0.1 | EXP815 | EXP816 | EXP817 | EXP901 | EXP901 | EXP901 |
    | 9.2.0 | EXP815 | EXP816 | EXP817 | EXP901 | EXP920 | EXP920 |
    +-----------+--------+--------+--------+--------+--------+---------+
    | 10.1.0 4)| EXP815 | EXP816 | EXP817 | EXP901 | EXP920 | 4) |
    +-----------+--------+--------+--------+--------+--------+---------+
    Remarks:
    1) IMPORT can read export dump files created by EXPORT release 5.1.22 and
    higher (up to same version).
    2) An Oracle5 or Oracle6 export dump and an Oracle7 IMPORT:
    see the Oracle Utilities Manual, Chapter 2 "Import" for special
    considerations to keep in mind.
    3) To export from Oracle7 for import into an Oracle6 database: user SYS
    must run script CATEXP6.SQL on the Oracle7 database first (this script
    needs to be run only once to have the version6 views been created).
    4) To export from Oracle8, Oracle8i for import into an Oracle7 database:
    user SYS must run script CATEXP7.SQL on the Oracle8/8i database first
    (this script needs to be run only once in order to create the version7
    views).

  • How can I add a user Role member that is from a different domain

    We are currently building out SCOM 2012 R2 to provide monitoring as a service to some of our customers.  As of now we have the RMS on our own department's domain (Domain A) which we have full control of and we have a gateway server that is on the company
    wide domain (Domain B) so that we can monitor other departments devices as the leverage this system.
    Monitoring is working just fine on both domains and we are just working on fine tuning SCOM so that we can roll it out as a service we offer to our customers.  One of the next steps we are working on before rolling it out is giving specific users access
    to view only their own devices, dashboards, and groups.  So I created a Read-Only profile and went to add a user to test it out, but that user is on Domain B and SCOM is unable to resolve this account.  I'm seeing Event ID 26319 with Error Code 1332.
    How can I get SCOM to discover devices on a different domain so that I can give them different permissions for accessing the Operations Console and/or Web Console?  Is this possible?
    Here is the Error I'm seeing.
    Log Name:      Operations Manager
    Source:        OpsMgr SDK Service
    Date:          2/4/2015 1:11:59 PM
    Event ID:      26319
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      xxxxx.xxxx.xxxxxxxx.xxx
    Description:
    An exception was thrown while processing UpsertUserRolesV2 for session ID uuid:f3b4015e-9583-4237-b7a6-406826434553;id=40.
     Exception message: The creator of this fault did not specify a Reason.
     Full Exception: System.ServiceModel.FaultException`1[Microsoft.EnterpriseManagement.Common.UserRoleUserUnresolvedException]: The creator of this fault did not specify a Reason. (Fault Detail is equal to Microsoft.EnterpriseManagement.Common.UserRoleUserUnresolvedException:
    Unable to resolve the user [email protected] associated with the user role. Error code 1332. Check your active directory configuration.).
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="OpsMgr SDK Service" />
        <EventID Qualifiers="49152">26319</EventID>
        <Level>2</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2015-02-04T21:11:59.000000000Z" />
        <EventRecordID>172748</EventRecordID>
        <Channel>Operations Manager</Channel>
        <Computer>xxxxx.xxxx.xxxxxxxx.xxx</Computer>
        <Security />
      </System>
      <EventData>
        <Data>UpsertUserRolesV2</Data>
        <Data>uuid:f3b4015e-9583-4237-b7a6-406826434553;id=40</Data>
        <Data>The creator of this fault did not specify a Reason.</Data>
        <Data>System.ServiceModel.FaultException`1[Microsoft.EnterpriseManagement.Common.UserRoleUserUnresolvedException]: The creator of this fault did not specify a Reason. (Fault Detail is equal to Microsoft.EnterpriseManagement.Common.UserRoleUserUnresolvedException:
    Unable to resolve the user [email protected]  associated with the user role. Error code 1332. Check your active directory configuration.).</Data>
      </EventData>
    </Event>
    Thanks for any help I can get in resolving this issue.
    Jake

    The SCOM Management Server is in Domain A.  I've tried it already and it has failed.  
    So just to clarify the method I used was to go to Administration>Security>User Roles.  Then New User Role>Read-Only Operator.  In the Create User Role Wizard I then gave the User Role a name, Clicked "Add" under User Role Members.
     Then the Select Users or Groups window pops up and I changed the Locations from Domain A to Domain B and searched for the user, which it's able to find, then clicked "OK" to add it to the User Role members which it does just fine.  On
    the next page which is Group Scope I checked the one group I want this account to have access to and then click next.  This brings me to Dashboards and Views where I click the radio button for "Only the dashboards and views selected in each tab are
    approved" and chose the folder of dashboards I want this account to access and then click next.  This brings me to the Summary and I click "Create".  At this point it thinks for a moment then closes out the wizard but the new Read-Only
    Operator does not appear.  I then look in Event Viewer and see the Event I pasted above.
    Am I doing something wrong here?  Any guidance on how to get around this issue would be much appreciated.
    Thanks,
    Jake

  • User Library - User Roles RoboSource 3

    When using RoboHelp Server 7 and RoboSource Control 3.1,
    there is a short help topic that describes the User Library - User
    Roles - and each permission (what it enables or disables). This is
    pretty brief information. I'm having many different issues with
    getting permissions set up for each of the authors on my technical
    writing team at my company. Does anyone out there have any more
    information (more details) on what each permission does and
    enables? I don't think I should have to assign all rights,
    especially admin and subadmin to all of my users just to get
    everything working the way I want it to.

    Finally got an answer from Adobe customer support. Having
    gone back and forth for a while with a web case and getting no
    where fast, I called and talked to the customer support
    representative on the telephone. A couple of things helped clarify
    my issue. First of all, the difference between X5 and RH7 source
    control is that the default behavior when deleting using the client
    is now to "hide" topics rather than delete them from the database
    permanently. You can keep users from bringing those topics back by
    not giving them the unhide right. The only way to actually delete a
    topic from the database permanently now is to use the RoboSource
    Control Explorer, which breaks the project. Of course, I just check
    out the folder fpj file, modify it myself, and check it back in to
    fix that issue. But who wants to do that all the time? And not all
    of us understand XML and are able to do that. OK, so that is the
    first issue. One has to understand that hiding is deleting now. But
    on to the second issue. Why was the topic I was deleting only being
    hidden from me and not all of the other users are our team? Turns
    out I should not be giving Admin and Sub-Admin rights to myself as
    an authoring user. Only the "Admin" user account should have these
    rights, and only for administration, only use the Admin account.
    After removing these rights, I was then able to delete topics and
    the topics would then not show up for any of my team. I also found
    another issue resolved by taking these rights from my authoring
    user account. When I had the admin and sub-admin rights, I could
    not re-import topics another time. I would get a message that said
    the topic already existed in the project. After removing the
    rights, I could then choose to overwrite the existing topic or not.
    Thus, my other post in this RoboSource Control forum about wanting
    more than a one-liner on user rights is even more important. I
    submitted a feature request for better documentation of user
    rights. Let's hope someone listens!

  • GoldenGate replication of creating users, roles

    System Specs:
    O/S : RHEL 5 (Tikanga)
    RDBMS: 11.2.0.3 (Standalone, ASM, Archivelog)
    GoldenGate v:11.1.1.0 (getting ready to upgrade to v11.1.1.2 (want to utilize the ADD SCHEMATRANDATA and updated sequence support)
    I have read the documentation in GG that says that DDL support Oracle restricted schemas is not supported (including sys and system). From this document a create statement is considered DDL.
    However, I have to think that when a user or role is created on the Source that you want that action replicated to the Targets? So you don't have to rerun the action on the number of targets you have. This is the benefit of replication, correct?
    Without this ability replication is somewhat restrictive.
    Please someone shed some light on how a user/role statement could be replicated?
    Thanks!
    Jason

    Okay, so I reviewed the documentation and need some help in replicating DDL for 2 schemas.
    Here is my Extract and Replicat modules
    EXTRACT EXT1
    USERID ggs_owner, PASSWORD ggs_owner
    RMTHOST db2, MGRPORT 7809
    RMTTRAIL /home/oracle/goldengate/dirdat/gg
    ---ddl---
    DDL INCLUDE MAPPED
    ---dml---
    table schema1.*;
    table exclude schema1.*_sq;
    REPLICAT REP1
    ASSUMETARGETDEFS
    USERID ggs_owner, PASSWORD ggs_owner
    DDL INCLUDE MAPPED
    DDLERROR DEFAULT IGNORE RETRYOP
    REPERROR (1403, DISCARD)
    MAP schema1.*, TARGET schema1.* ;
    MAP schema2.*, TARGET schema2.*;
    My issue is that ddl replication is only working for schema1. No ddl is being replicated with schema2. I know there must be a something small I am overlooking.
    I was successful with
    DDL INCLUDE ALL, EXCLUDE "schema3.*, EXCLUDE "schema4.*", EXCLUDE "schema5.*", etc...
    However, I don't want to list out every schema that could potentially perform ddl. I would think the DDL INCLUDE MAPPED and then include those schemas that you want mapped.
    Any ideas?

  • Modify Script to Create User Role on Single Database.

    Hi All,
    Below is the script to create user role on database. Here problem is when I execute this script, it creates user role for all database within an instance and I want it to create user role only on 2 database say TEST1 and TEST2
    Can anyone help me to modify the script? 
    --===================================================================================
    -- Description
    -- Database Type: MSSQL
    -- This script creates a role called 'gdmmonitor' for ALL databases.
    -- It grants some system catalogs to this role to allow Classification and Assessment on the database.
    -- It then adds a user called "sqlguard" to all databases and grants this user gdmmonitor role.
    -- before runnign this script
    --  you MUST CREATE A SQL LOGIN CALLED 'sqlguard'
    --  This sqlguard login doesn't need to be added to any database or given
    --  any privilege.  The script will take care of that.
    --  Note:
    --   If you wish to use a different login name (instead of 'sqlguard') you need to change
    --   the value of the variable '@Guardium_user' in the script below; 
    --   (Look for the string: "set @Guardium_user = 'sqlguard'" and replace the 'sqlguard')
    -- after runnign this script
    -- Nothing to do, the script already creates the db user
    -- User/Password to use
    -- User: sqlguard (or any other name, if changed)
    -- Pass: user defined
    -- Role: gdmmonitor
    --===================================================================================
    PRINT '>>>==================================================================>>>'
    PRINT '>>> Creating role: "gdmmonitor" at the server level.'
    PRINT '>>>==================================================================>>>'
    -- Change to the master database
    USE master
    -- *** If a different login name is desired, define it here. ***
    DECLARE @Guardium_user AS varchar(50)
    set @Guardium_user = 'sqlguard'
    DECLARE @dbName AS varchar(256)
    DECLARE @memberName AS varchar(256)
    DECLARE @dbVer AS nvarchar(128)
    SET     @dbVer = CAST(serverproperty('ProductVersion') AS nvarchar)
    SET     @dbVer = SUBSTRING(@dbVer, 1, CHARINDEX('.', @dbVer) - 1)
    IF (@dbVer = '8') SET @dbVer = '2000'
    ELSE IF (@dbVer = '9')  SET @dbVer = '2005'
    ELSE IF (@dbVer = '10')  SET @dbVer = '2008'
    ELSE IF (@dbVer = '11')  SET @dbVer = '2012'
    ELSE SET @dbVer = '''Unsupported Version'''
    IF (@dbVer != '2000')
    BEGIN
      -- This privilege is required to peform a specific MSSQL test.
      -- Test name: SQL OLEDB disabled (DisallowAdhocAccess registry key) 
      -- Procedure execute: EXEC master.dbo.sp_MSset_oledb_prop 
      -- Purpose: To display provider property, not changing anything.
      PRINT '==> Granting MSSSQL 2005 and above setupadmin server role'
      EXEC master..sp_addsrvrolemember @loginame = @Guardium_user, @rolename = N'setupadmin'
    END
    SELECT  @dbName = DB_NAME()
    PRINT '==> Starting MSSql ' + @dbVer + ' role creation on database: ' + @dbName
    -- find any members of the role if they exist
    CREATE TABLE #rolemember (membername VARCHAR(256) NOT NULL)
    INSERT INTO #rolemember
    SELECT DISTINCT usr.name FROM dbo.sysusers usr, .dbo.sysmembers mbr
    WHERE usr.uid = mbr.memberuid
    AND mbr.groupuid = (SELECT uid FROM .dbo.sysusers WHERE name = 'gdmmonitor')
    --  Drop the Role Members If they exist
    IF EXISTS (SELECT count(*) FROM #rolemember)
    BEGIN
      PRINT '==> Dropping the gdmmonitor role members on: ' + @dbName
      DECLARE DropCursor CURSOR FOR SELECT membername from #rolemember
      OPEN DropCursor
      FETCH DropCursor INTO @memberName
      WHILE @@Fetch_Status = 0
       BEGIN
        PRINT '==> Dropping member: ''' + @memberName + ''''
        exec('EXEC sp_droprolemember ''gdmmonitor'', ''' + @memberName + ''' ;')
        FETCH DropCursor INTO @memberName
       END
      CLOSE DropCursor
      DEALLOCATE DropCursor
    END
    -- drop the role if it exists
    IF EXISTS (SELECT 1 FROM .dbo.sysusers WHERE name = 'gdmmonitor')
    BEGIN
      PRINT '==> Dropping the role gdmmonitor on: ' + @dbName
      exec sp_droprole 'gdmmonitor'
    END
    -- Create the role
    PRINT '==> Creating the role gdmmonitor on: ' + @dbName
    exec sp_addrole 'gdmmonitor'
    -- Grant select privileges to the role for MSSql Common
    PRINT '==> Granting common SELECT privileges on: ' + @dbName
    GRANT SELECT ON dbo.spt_values     TO gdmmonitor
    GRANT SELECT ON dbo.sysmembers     TO gdmmonitor
    GRANT SELECT ON dbo.sysobjects     TO gdmmonitor
    GRANT SELECT ON dbo.sysprotects    TO gdmmonitor
    GRANT SELECT ON dbo.sysusers       TO gdmmonitor
    GRANT SELECT ON dbo.sysconfigures  TO gdmmonitor
    GRANT SELECT ON dbo.sysdatabases   TO gdmmonitor
    GRANT SELECT ON dbo.sysfiles       TO gdmmonitor
    GRANT SELECT ON dbo.syslogins      TO gdmmonitor
    GRANT SELECT ON dbo.syspermissions TO gdmmonitor
    -- Grant execute privileges to the role for MSSql Common
    PRINT '==> Granting common EXECUTE privileges on: ' + @dbName
    GRANT EXECUTE ON sp_helpdbfixedrole    TO gdmmonitor
    GRANT EXECUTE ON sp_helprotect         TO gdmmonitor
    GRANT EXECUTE ON sp_helprolemember     TO gdmmonitor
    GRANT EXECUTE ON sp_helpsrvrolemember  TO gdmmonitor
    GRANT EXECUTE ON sp_tables             TO gdmmonitor
    GRANT EXECUTE ON sp_validatelogins     TO gdmmonitor
    GRANT EXECUTE ON sp_server_info       TO gdmmonitor
    -- Check if the version is 2005 or greater
    IF (@dbVer != '2000')
    BEGIN
      -- Grant select privileges to the role for MSSql 2005 and above
      PRINT '==> Granting MSSql 2005 and above SELECT privileges on: ' + @dbName
      GRANT SELECT ON sys.all_objects           TO gdmmonitor
      GRANT SELECT ON sys.database_permissions  TO gdmmonitor
      GRANT SELECT ON sys.database_principals   TO gdmmonitor
      GRANT SELECT ON sys.sql_logins            TO gdmmonitor
      GRANT SELECT ON sys.sysfiles              TO gdmmonitor
      GRANT SELECT ON sys.database_role_members TO gdmmonitor 
      GRANT SELECT ON sys.server_role_members   TO gdmmonitor 
      GRANT SELECT ON sys.configurations        TO gdmmonitor
      GRANT SELECT ON sys.master_key_passwords  TO gdmmonitor
      GRANT SELECT ON sys.server_principals     TO gdmmonitor
      GRANT SELECT ON sys.server_permissions    TO gdmmonitor
      GRANT SELECT ON sys.credentials    
       TO gdmmonitor
      --This is called by master.dbo.sp_MSset_oledb_prop.  
      --By defautl it should have already been granted to public. 
      GRANT EXECUTE ON sys.xp_instance_regread TO GDMMONITOR
      GRANT EXECUTE ON sys.sp_MSset_oledb_prop TO GDMMONITOR 
    END
    -- Re-add the dropped members
    IF EXISTS (SELECT 1 FROM #rolemember)
    BEGIN
      PRINT '==> Re-adding the role members on: ' + @dbName
      DECLARE DropCursor CURSOR FOR SELECT membername from #rolemember
      OPEN DropCursor
      FETCH DropCursor INTO @memberName
      WHILE @@Fetch_Status = 0
        BEGIN
         PRINT '==> Re-adding member: ''' + @memberName + ''''
         exec('EXEC sp_addrolemember ''gdmmonitor'', ''' + @memberName + ''' ;')
         FETCH DropCursor INTO @memberName
        END
      CLOSE DropCursor
      DEALLOCATE DropCursor
    END
    -- END of role creation on database
    PRINT '==> END of role creation on: ' + @dbName
    PRINT ''
    -- Change to the msdb database
    USE msdb
    set @memberName = ''
    SELECT  @dbName = DB_NAME()
    PRINT '==> Starting MSSql ' + @dbVer + ' role creation on database: ' + @dbName
    -- find any members of the role if it exists
    TRUNCATE TABLE #rolemember
    INSERT INTO #rolemember
    SELECT DISTINCT usr.name FROM .dbo.sysusers usr, .dbo.sysmembers mbr
    WHERE usr.uid = mbr.memberuid
    AND groupuid = (SELECT uid FROM .dbo.sysusers WHERE name = 'gdmmonitor')
    --  Drop the Role Members If they exist
    IF EXISTS (SELECT count(*) FROM #rolemember)
    BEGIN
      PRINT '==> Dropping the gdmmonitor role members on: ' + @dbName
      DECLARE DropCursor CURSOR FOR SELECT membername from #rolemember
      OPEN DropCursor
      FETCH DropCursor INTO @memberName
      WHILE @@Fetch_Status = 0
       BEGIN
        PRINT '==> Dropping member: ''' + @memberName + ''''
        exec('EXEC sp_droprolemember ''gdmmonitor'', ''' + @memberName + ''' ;')
        FETCH DropCursor INTO @memberName
       END
      CLOSE DropCursor
      DEALLOCATE DropCursor
    END
    -- drop the role if it exists
    IF EXISTS (SELECT 1 FROM .dbo.sysusers WHERE name = 'gdmmonitor')
    BEGIN
      PRINT '==> Dropping the gdmmonitor role on: ' + @dbName
      exec sp_droprole 'gdmmonitor'
    END
    -- Create the role
    PRINT '==> Creating the gdmmonitor role on: ' + @dbName
    exec sp_addrole 'gdmmonitor'
    -- Grant select privileges to the role for MSSql Common
    PRINT '==> Granting common SELECT privileges on: ' + @dbName
    GRANT SELECT ON dbo.sysobjects     TO gdmmonitor
    GRANT SELECT ON dbo.sysusers       TO gdmmonitor
    GRANT SELECT ON dbo.sysprotects    TO gdmmonitor
    GRANT SELECT ON dbo.sysmembers     TO gdmmonitor
    GRANT SELECT ON dbo.sysfiles       TO gdmmonitor
    GRANT SELECT ON dbo.syspermissions TO gdmmonitor
    GRANT SELECT ON dbo.backupset   TO gdmmonitor
    -- Check if the version is 2005 or greater
    IF (@dbVer != '2000')
    BEGIN
      -- Grant select privileges to the role for MSSql 2005 and above
      PRINT '==> Granting MSSql 2005 and above SELECT privileges on: ' + @dbName
      GRANT SELECT ON sys.all_objects TO gdmmonitor
      GRANT SELECT ON sys.database_permissions TO gdmmonitor
      GRANT SELECT ON sys.database_principals TO gdmmonitor
      GRANT SELECT ON sys.sysfiles TO gdmmonitor
      -- Grant execute privileges to the role for MSSql 2005 or above
      PRINT '==> Granting MSSql 2005 and above EXECUTE privileges on: ' + @dbName
      GRANT EXECUTE ON msdb.dbo.sp_enum_login_for_proxy TO gdmmonitor
      GRANT SELECT ON sys.database_role_members  TO gdmmonitor
    END
    IF (@dbVer > '2000' and @dbVer < '2012') 
    --This sp is not available in SQL 2012
    BEGIN
      GRANT EXECUTE ON sp_get_dtspackage TO gdmmonitor
    END
    -- Re-add the dropped members
    IF EXISTS (SELECT count(*) FROM #rolemember)
    BEGIN
      PRINT '==> Re-adding the gdmmonitor role members on: ' + @dbName
      DECLARE DropCursor CURSOR FOR SELECT membername from #rolemember
      OPEN DropCursor
      FETCH DropCursor INTO @memberName
      WHILE @@Fetch_Status = 0
        BEGIN
         PRINT '==> Re-adding member: ''' + @memberName + ''''
         exec('EXEC sp_addrolemember ''gdmmonitor'', ''' + @memberName + ''' ;')
         FETCH DropCursor INTO @memberName
        END
      CLOSE DropCursor
      DEALLOCATE DropCursor
    END
    -- drop the temporary table
    DROP TABLE #rolemember
    -- END of role creation on database
    PRINT '==> END of gdmmonitor role creation on: ' + @dbName
    -- Role creation complete
    PRINT '<<<==================================================================<<<'
    PRINT '<<< END of creating role: "gdmmonitor" at the server level.'
    PRINT '<<<==================================================================<<<'
    PRINT ''
    PRINT '>>>==================================================================>>>'
    PRINT '>>> Starting application database role creation'
    PRINT '>>>==================================================================>>>'
    use master
    DECLARE @databaseName AS varchar(80)
    DECLARE @executeString AS varchar(7950)
    DECLARE @dbcounter as int   
    set @dbcounter = 0
    DECLARE DatabaseCursor CURSOR FOR SELECT name from sysdatabases where name not in ('master', 'msdb')
    and not (status & 1024 > 1)
    --read only
    and not (status & 4096 > 1)
    --single user
    and not (status & 512 > 1)
    --offline
    and not (status & 32 > 1)
    --loading
    and not (status & 64 > 1)
    --pre recovery
    and not (status & 128 > 1)
    --recovering
    and not (status & 256 > 1)
    --not recovered
    and not (status & 32768 > 1)
    --emergency mode
    OPEN DatabaseCursor
    FETCH DatabaseCursor INTO @databaseName
    WHILE @@Fetch_Status = 0
    BEGIN
    set @dbcounter = @dbcounter + 1     
    set @databaseName = '"' + @databaseName + '"'  
    set @executeString = ''
    set @executeString = 'use ' + @databaseName + ' ' +
             'PRINT ''>>>==================================================================>>>'' ' +
             'PRINT ''>>> Starting MSSql ' + @dbVer + ' role creation on database: ' + @databaseName + ''' ' +
             'PRINT ''>>>==================================================================>>>'' ' +
           '/* Variable @memberNameDBname must be declare within the string or else it will fail */ ' +
           'DECLARE @memberName' + cast(@dbcounter as varchar(5)) + ' as varchar(50) ' +
           '/*find any members of the role if it exists*/ ' +
             'CREATE TABLE #rolemember (membername VARCHAR(256) NOT NULL) ' +
             'INSERT INTO #rolemember ' +
             'SELECT DISTINCT usr.name FROM dbo.sysusers usr, dbo.sysmembers mbr ' +
             'WHERE usr.uid = mbr.memberuid ' +
             'AND groupuid = (SELECT uid FROM dbo.sysusers WHERE name = ''gdmmonitor'') ' +
             '/*Drop the Role Members If they exist*/ ' +
             'IF EXISTS (SELECT * FROM #rolemember) ' +
             'BEGIN ' +
               'PRINT ''==> Dropping the role members on: ' + @databaseName + ''' ' +
               'DECLARE DropCursor CURSOR FOR SELECT membername from #rolemember ' +
               'OPEN DropCursor ' +
               'FETCH DropCursor INTO @memberName' + cast(@dbcounter as varchar(5)) + ' ' +
               'WHILE @@Fetch_Status = 0 ' +
                 'BEGIN ' +
                 'PRINT ''==> Dropping member: '' + @memberName' + cast(@dbcounter as varchar(5)) + ' ' +
                 'exec(''EXEC sp_droprolemember ''''gdmmonitor'''', '''''' + @memberName' + cast(@dbcounter as varchar(5))  + ' + '''''';'') ' +
                 'FETCH DropCursor INTO @memberName' + cast(@dbcounter as varchar(5)) + ' ' +
                 'END ' +
               'CLOSE DropCursor ' +
               'DEALLOCATE DropCursor ' +
             'END ' +
             '/*drop the role if it exists*/ ' +
             'IF EXISTS (SELECT 1 FROM .dbo.sysusers WHERE name = ''gdmmonitor'') ' +
             'BEGIN ' +
               'PRINT ''==> Dropping the gdmmonitor role on: ' + @databaseName + ''' ' +
               'exec sp_droprole ''gdmmonitor'' ' +
             'END ' +
             '/* Create the role */ ' +
             'PRINT ''==> Creating the gdmmonitor role on: ' + @databaseName + ''' ' +
             'exec sp_addrole ''gdmmonitor'' ' +
             '/* Grant select privileges to the role for MSSql Common */ ' +
             'PRINT ''==> Granting common SELECT privileges on: ' + @databaseName + ''' ' +
             'GRANT SELECT ON dbo.sysmembers     TO gdmmonitor ' +
             'GRANT SELECT ON dbo.sysobjects     TO gdmmonitor ' +
             'GRANT SELECT ON dbo.sysprotects    TO gdmmonitor ' +
             'GRANT SELECT ON dbo.sysusers       TO gdmmonitor ' +
             'GRANT SELECT ON dbo.sysfiles       TO gdmmonitor ' +
                   'GRANT SELECT ON dbo.syspermissions TO gdmmonitor ' +
             '/* Check if the version is 2005 or greater */ ' +
             'IF (' + @dbVer + ' != ''2000'') ' +
             'BEGIN ' +
               '/* Grant select privileges to the role for MSSql 2005 and above */ ' +
               'PRINT ''==> Granting MSSql 2005 and above SELECT privileges on: ' + @databaseName + ''' ' +
               'GRANT SELECT ON sys.database_permissions TO gdmmonitor ' +
               'GRANT SELECT ON sys.all_objects          TO gdmmonitor ' +
               'GRANT SELECT ON sys.database_principals  TO gdmmonitor ' +
               'GRANT SELECT ON sys.sysfiles      TO gdmmonitor ' +          
               'GRANT SELECT ON sys.database_role_members  TO gdmmonitor ' +           
             'END ' +
             '/* Re-add the dropped members */ ' +
             'IF EXISTS (SELECT 1 FROM #rolemember) ' +
             'BEGIN ' +
               'PRINT ''==> Re-adding the gdmmonitor role members on: ' + @databaseName + ''' ' +
               'DECLARE DropCursor CURSOR FOR SELECT membername from #rolemember ' +
               'OPEN DropCursor ' +
               'FETCH DropCursor INTO @memberName' + cast(@dbcounter as varchar(5)) + ' ' +
               'WHILE @@Fetch_Status = 0 ' +
                 'BEGIN ' +
                   'PRINT ''==> Re-adding member: '' + @memberName' + cast(@dbcounter as varchar(5)) + ' ' +
                   'exec(''EXEC sp_addrolemember ''''gdmmonitor'''', '''''' + @memberName' + cast(@dbcounter as varchar(5))  + ' + '''''';'') ' +
                   'FETCH DropCursor INTO @memberName' + cast(@dbcounter as varchar(5)) + ' ' +
                 'END ' +
               'CLOSE DropCursor ' +
               'DEALLOCATE DropCursor ' +
             'END ' +
             '/* drop the temporary table */ ' +
             'DROP TABLE #rolemember ' +
             'PRINT ''<<<==================================================================<<<'' ' +
             'PRINT ''<<< END of role creation on: ' + @databaseName + ''' ' +
             'PRINT ''<<<==================================================================<<<'' ' +
             'PRINT '' ''' +
             'PRINT '' '''
    execute (@executeString)
    FETCH DatabaseCursor INTO @databaseName
    END
    CLOSE DatabaseCursor
    DEALLOCATE DatabaseCursor
    --  Adding user to all the databases
    --  and grant gdmmonitor role, only if login exists.
    PRINT '>>>==================================================================>>>'
    PRINT '>>> Add and Grant gdmmonitor role to: ''' + @Guardium_user + ''''
    PRINT '>>> on all databases.'
    PRINT '>>>==================================================================>>>'
    USE master
    /* Check if @Guardium_user is a login exist, if not do nothing.*/
    IF NOT EXISTS (select * from syslogins where name = @Guardium_user)
    BEGIN
      PRINT ''
      PRINT '************************************************************************'
      PRINT '*** ERROR: Could not find the login: ''' + @Guardium_user + ''''
      PRINT '***        Please add the login and re-run this script.'
      PRINT '************************************************************************'
      PRINT ''
    END
    ELSE
    BEGIN
      DECLARE @counter AS smallint
      set @counter = 0
      --  This loop runs 4 time just to make sure that the @Guardium_user gets added to all db.
      --  99% of the time, this is totally unnecessary.  But in some rare case on SQL 2005
      --  the loop skips some databases when it tried to add the @Guardium_user.
      --  After two to three executions, the user is added in all the dbs.
      --  Might be a SQL Server bug.
      WHILE @counter <= 3
      BEGIN
      set @counter = @counter + 1
        set @databaseName = ''
        set @executeString = ''
        DECLARE DatabaseCursor CURSOR FOR SELECT name from sysdatabases
        where not (status & 1024 > 1)
    --read only
        and not (status & 4096 > 1)
    --single user
        and not (status & 512 > 1)
    --offline
        and not (status & 32 > 1)
    --loading
        and not (status & 64 > 1)
    --pre recovery
        and not (status & 128 > 1)
    --recovering
        and not (status & 256 > 1)
    --not recovered
    and not (status & 32768 > 1)
    --emergency mode    
        OPEN DatabaseCursor
        FETCH DatabaseCursor INTO @databaseName
        WHILE @@Fetch_Status = 0
        BEGIN
        set @databaseName = '"' + @databaseName + '"' 
        set @executeString = ''
        set @executeString = 'use ' + @databaseName + ' ' +
                 '/*Check if the login already has access to this database */ ' +
                 'IF EXISTS (select * from sysusers where name = ''' + @Guardium_user + ''' and islogin = 1) ' +
                 'BEGIN ' +
                  '/*Check if login already have gdmmonitor role*/ ' +
                  'IF NOT EXISTS (SELECT usr.name FROM dbo.sysusers usr, dbo.sysmembers mbr WHERE usr.uid = mbr.memberuid ' +
                'AND mbr.groupuid = (SELECT uid FROM dbo.sysusers WHERE name = ''gdmmonitor'') ' +
                'AND usr.name = ''' + @Guardium_user + ''') ' +
                  'BEGIN ' +
                  'PRINT ''==> Granting gdmmonitor role to ' + @Guardium_user + ' on database ' + @databaseName + ''' ' +
                  'execute sp_addrolemember ''gdmmonitor''' + ', [' + @Guardium_user + '] ' +
                  'PRINT '' ''' +
                  'END ' +
                 'END ' +
                 'IF NOT EXISTS (select * from sysusers where name = ''' + @Guardium_user + ''' and islogin = 1) ' +
                 'BEGIN ' +
                 'PRINT ''==> Adding user [' + @Guardium_user + '] to database: ' + @databaseName + ''' ' +
                 'execute sp_adduser [' + @Guardium_user + '] ' +
                 'PRINT ''==> Granting gdmmonitor role to ' + @Guardium_user + ' on database '  + @databaseName + ''' ' +
                 'execute sp_addrolemember ''gdmmonitor''' + ', [' + @Guardium_user + '] ' +
                 'PRINT '' ''' +
                 'END '
        execute (@executeString)
        FETCH DatabaseCursor INTO @databaseName
        END
        CLOSE DatabaseCursor
        DEALLOCATE DatabaseCursor
      END   -- end while
      -- Required for Version 2005 or greater.
      IF (@dbVer != '2000')
      BEGIN
        -- Grant system privileges to the @guardium_user.  This is a requirement for >= SQL 2005
        -- or else some system catalogs will filter our result from assessment test.
        -- This will show up in sys.server_permissions view.
        PRINT '==> Granting catalog privileges to: ''' + @Guardium_user + ''''
        execute ('grant VIEW ANY DATABASE to [' + @Guardium_user + ']' )
        execute ('grant VIEW ANY DEFINITION to [' + @Guardium_user + ']' )
      END
      PRINT '<<<==================================================================<<<'
      PRINT '<<< Finished Adding and Granting gdmmonitor role to: ''' + @Guardium_user + ''''
      PRINT '<<< on all databases.'
      PRINT '<<<==================================================================<<<'
      PRINT ''
    END
    GO

    Thanks a lot Sir... it worked.
    Can you also help me in troubleshooting below issue?
    This script is working fine on all databases except one MS SQL 2005 database. build of this database is 9.00.3042.00
    SA account with highest privileges is been used for script execution. errors received are as follow:
    >>>==================================================================>>>
    >>> Creating role: "gdmmonitor" at the server level.
    >>>==================================================================>>>
    ==> Granting MSSSQL 2005 and above setupadmin server role
    ==> Starting MSSql 2005 role creation on database: master
    (0 row(s) affected)
    ==> Dropping the gdmmonitor role members on: master
    ==> Creating the role gdmmonitor on: master
    Msg 15002, Level 16, State 1, Procedure sp_addrole, Line 16
    The procedure 'sys.sp_addrole' cannot be executed within a transaction.
    ==> Granting common SELECT privileges on: master
    Msg 15151, Level 16, State 1, Line 117
    Cannot find the user 'gdmmonitor', because it does not exist or you do not have permission.
    Msg 15151, Level 16, State 1, Line 118
    Cannot find the user 'gdmmonitor', because it does not exist or you do not have permission.
    Msg 15151, Level 16, State 1, Line 119
    Cannot find the user 'gdmmonitor', because it does not exist or you do not have permission.
    Msg 15151, Level 16, State 1, Line 120
    Cannot find the user 'gdmmonitor', because it does not exist or you do not have permission.
    Msg 15151, Level 16, State 1, Line 121
    Cannot find the user 'gdmmonitor', because it does not exist or you do not have permission.
    Msg 15151, Level 16, State 1, Line 122
    Cannot find the user 'gdmmonitor', because it does not exist or you do not have permission.
    Msg 15151, Level 16, State 1, Line 123
    Cannot find the user 'gdmmonitor', because it does not exist or you do not have permission.
    Msg 15151, Level 16, State 1, Line 124
    Cannot find the user 'gdmmonitor', because it does not exist or you do not have permission.
    Msg 15151, Level 16, State 1, Line 125
    Cannot find the user 'gdmmonitor', because it does not exist or you do not have permission.
    Msg 15151, Level 16, State 1, Line 126
    Cannot find the user 'gdmmonitor', because it does not exist or you do not have permission.
    ==> Granting common EXECUTE privileges on: master
    Msg 15151, Level 16, State 1, Line 130
    Cannot find the user 'gdmmonitor', because it does not exist or you do not have permission.
    Msg 15151, Level 16, State 1, Line 131
    Cannot find the user 'gdmmonitor', because it does not exist or you do not have permission.
    Msg 15151, Level 16, State 1, Line 132
    Cannot find the user 'gdmmonitor', because it does not exist or you do not have permission.
    Msg 15151, Level 16, State 1, Line 133
    Cannot find the user 'gdmmonitor', because it does not exist or you do not have permission.
    Msg 15151, Level 16, State 1, Line 134
    Cannot find the user 'gdmmonitor', because it does not exist or you do not have permission.
    Msg 15151, Level 16, State 1, Line 135
    Cannot find the user 'gdmmonitor', because it does not exist or you do not have permission.
    Msg 15151, Level 16, State 1, Line 136
    Cannot find the user 'gdmmonitor', because it does not exist or you do not have permission.

  • How to redirect imp/exp or impdp/expdp output

    Hello,
    I'm sorry for that, if this forum not the right place for this posting, but I hope that some one has this problem too.
    I've an application written in C# (an windows.forms app) that calls imp/exp or impdp/expdp (depends on user). I need the output of this tools in my app.
    Thank a lot for any help.

    user9099355 wrote:
    Hello,
    I'm sorry for that, if this forum not the right place for this posting, but I hope that some one has this problem too.
    I've an application written in C# (an windows.forms app) that calls imp/exp or impdp/expdp (depends on user). I need the output of this tools in my app.
    Thank a lot for any help.EXPDP/IMPDP:-
    [oracle@adg disks]$ expdp system/manager schemas=scott directory=DATA_PUMP_DIR logfile=scot_exp.log
    Export: Release 11.2.0.1.0 - Production on Tue Oct 4 14:36:54 2011
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, Automatic Storage Management, OLAP, Data Mining
    and Real Application Testing options
    Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01":  system/******** schemas=scott directory=DATA_PUMP_DIR logfile=scot_exp.log
    [oracle@adg disks]$ cd /u01/app/oracle/admin/adg/dpdump/
    [oracle@adg dpdump]$ ls -lt scot_exp.log
    -rw-r--r-- 1 oracle dba 1965 Oct  4 14:38 scot_exp.log
    [oracle@adg dpdump]$exp/imp:-
    [oracle@adg dpdump]$ exp system/manager file=exp_schema.log log=exp_schema_trad.log owner=scott
    Export: Release 11.2.0.1.0 - Production on Tue Oct 4 14:38:53 2011
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, Automatic Storage Management, OLAP, Data Mining
    and Real Application Testing options
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses AL32UTF8 character set (possible charset conversion)
    [oracle@adg dpdump]$ ls -lt exp_schema_trad.log
    -rw-r--r-- 1 oracle dba 1774 Oct  4 14:39 exp_schema_trad.log
    [oracle@adg dpdump]$or
    nohup exp system/manager file=exp_schema.dmp owner=scott > exp_schema_test.log
    +[oracle@adg dpdump]$ ls -ltr exp_schema_test.log+
    -rw-r--r-- 1 oracle dba 1922 Oct  4 14:40 exp_schema_test.log
    +[oracle@adg dpdump]$+

  • No violations at user/role level

    Hi All,
    We are using GRC 10.1 SP04
    While running the risk analysis reports on user/role level, I don't see any violations. Post running the reports, I can only see that "No rules were selected" under Action field.
    Recently we added a few more systems/landscapes so created a few more connector groups and added the corresponding connectors. Strage part is that, for a few D-systems I can see the violations as expected but for the respectice Q-clients I don't see any eventhough there are violations.
    Please refer to the attached screen shots for clarity.
    Kindly help me with the solutions.
    Thanks,
    Ameet
    P.S: Rule-set is successfully generated and MIME repository is maintained with the appropriate extensions.

    Hi Ameet,
    How were you able to resolve the issue?
    Even I am now stuck with similar issue after I replaced the connector because of change of SRM sys IDs. I followed all the necessary steps after setting up the new connector. Steps like rescheduling all of the background jobs for these new connector. I also regenerated Rules and ran SOD analysis program. But still the nos of Risks differs between past and current report.
    Thanks,
    Kishore

  • Imp/exp stdout language

    Hi all,
    I am interested in changing language in exp and/or imp log files? Oracle version is 10.2.0.4.0, OS version is Win 2k3R2.
    I have Oracle DB installed on hungarian-language OS, and when issue an exp command, I get log file on hungarian language. I need stdout language for imp/exp utility to be on english. Can I do this?
    As far as I know stdout language for sqlplus query for current session can be changed with alter session set nls_language=ENGLISH.
    A little demonstration:
    current logfile:
    . . a következo tábla exportálása:                         A          3 sor exportálva
    . . a következo tábla exportálása:                         B          2 sor exportálva
    . . a következo tábla exportálása:                         C          0 sor exportálva
    desired logfile:
    . . exporting table                       A          3 rows exported
    . . exporting table                       B          2 rows exported
    . . exporting table                       C          0 rows exported
    . . . . .Tnx in advance.

    Prior to running exp or imp (and why still use exp and imp?)
    set nls_lang=<Region>_<territory>.<characterset>
    Don't know why but it seems it is 'Doc question day' again.
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for

  • Time Capsule and Windows 7 clear approach

    Hello all, I tried now for one month to install the Time Capsule (with Airport and Bonjour software) with Windows 7 WIRED. First I had to turn on the Net-Bios, which is difficult to find. I did. The Time Capsule was visible in the Windows File system

  • Some albums are missing on my PC after latest iTunes upgrade.

    This morning I was listening to music on my iPhone on my way to work.  Sat down at my PC and opened iTunes, the album I wanted showed up without artwork and I could see the name of the songs, but it would not play.  I then downloaded the latest iTune

  • HT1976 i have no data, its not a network problem please help

    My iphone keeps telling me I am not subscribed to a mobile network despite showing 3g and great reception. Network has been checked.

  • How can i turn off the speech preferences icon?

    Hello! There is a litle round icon that has appeared on my desktop that I cannot seem to quit, hide or remove... I have gone in to system preferences and already disabled the speech recognition, but it still remains... I am currently running OS X Ver

  • InfoShuttle 4.0

    Hi, Does anyone own this product? They are an SAP partner. I'm using it for data transfer (it uses IDocs) in HR from our production system to our integration test and development test systems. The problem is that when I specify a period date range, i