Create users before import

Hi members,
Is there any specific advantage in creating users using a user creation script before performing data pump import, the import dump file will create the users anyway right?
Thanks for your reply.

abctoz wrote:
Hi members,
Is there any specific advantage in creating users using a user creation script before performing data pump import, the import dump file will create the users anyway right?
Thanks for your reply.Suppose the user being imported had - in the source database - a default tablespace that doesn't exist in the target database ... ;-)

Similar Messages

  • Pre-create Datafiles before import or not ?

    I'm facing the almost the same problem. I have empty tablespaces created in My database. I want to perform Regaular Import (imp) .When i did Full database Import..There were Errors like
    Not able to create Tablespaces, users does not exist.
    There is also Difference in the Os level Directory structure from the Source Database to Target Database.So somebody can help me how to Perform Full database Import with already created tablespaces, What are the options??

    Database version is 11.2.0.2. The Export is full database Export ( EXP). I don't have much details of this.
    what i have is Export dump(exp) dump file now.
    My database 11.2.0.2 is new Created. It does not contain any schemas etc.It is created using DBCA.
    Now i want to to perform Full database Import. Source database and Target database filesystem structre are different.
    I'm not aware of the schemas in the source database and their File strucutre.
    I did :
    imp sys/pwd file=export_full.dmp FULL=Y IGNORE=Y log=imp.log
    Errors:
    Import: Release 11.2.0.2.0 - Production on Thu Dec 20 16:29:07 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    IMP-00058: ORACLE error 1017 encountered
    ORA-01017: invalid username/password; logon deniedUsername: / as sysdba
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Export file created by EXPORT:V11.02.00 via conventional path
    import done in US7ASCII character set and AL16UTF16 NCHAR character set
    import server uses AL32UTF8 character set (possible charset conversion)
    . importing SYSTEM's objects into SYSTEM
    IMP-00017: following statement failed with ORACLE error 1119:
    "CREATE TABLESPACE "XXX" BLOCKSIZE 8192 DATAFILE '/dbs/XXX40p/oradata/XXX"
    "40p/XXX1_data01.dbf' SIZE 32767M , '/dbs/kfs40p/oradata/XXX40p/kfst1_"
    "data02.dbf' SIZE 32712M AUTOEXTEND ON NEXT 1048576 MAXSIZE 32767M EX"
    "TENT MANAGEMENT LOCAL AUTOALLOCATE ONLINE PERMANENT SEGMENT SPACE MANAGE"
    "MENT AUTO"
    IMP-00003: ORACLE error 1119 encountered
    ORA-01119: error in creating database file '/dbs/XXX40p/oradata/XXX40p/XXX_data01.dbf'
    ORA-27040: file create error, unable to create file
    Linux-x86_64 Error: 2: No such file or directory.
    and some more errors are
    "CREATE USER "xxx_ADMIN" IDENTIFIED BY VALUES xxxx DEFAULT"
    " TABLESPACE "xxx1" TEMPORARY TABLESPACE "TEMP""
    IMP-00003: ORACLE error 959 encountered
    ORA-00959: tablespace 'xxxxx' does not exist
    IMP-00017: following statement failed with ORACLE error 959:
    Like this.
    Please help me on this.
    Thanks..

  • Add object Classes before creating user??

    Hi,
    I have a requirement where in I need to add object classes to the user while provisioning to Sun Directory Server. How exactly should I be implementing my process task for the same. Should I add the object class after the Create task is finished or before the Create User task gets triggered?
    Thanks,
    Supreetha

    Are you talking about adding custom object classes for the users? This would be a schema change and should be done prior to adding users since that would fail without having the correct schema in place. To add new object classes you need to either manually create the from the DSEE admin page or import the object definitions and attributes from a ldif file. Once that is all done, you can then configure the provisioning workflow and add the object classes during user creation so the system knows what object classes to associate with each user entry.

  • The new event are created when i import photo in the top. Before they where put in the end. All my event are classified. Where i can set the event at the end ? Thank's.

    The new event are created when i import photo in the top.
    Before they where put in the end.
    All my event (around 600) are classified on the top the old and a the end the new.
    Where i can set the event at the end ?
    Thank's.

    View menu  ==> sort events
    LN

  • 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?

  • User exit to run before importing abap transport in TMS

    Hi,
    I need to run a check before importing an ABAP transport.
    I've seen a BADI that can be used after transport, also handy, but I really need to check dependencies before importing as well.
    Is there a user exit or badi that can do this?
    Thanks
    Tom

    Hello,
    This is possible in a crude away. SAP fires two events in the Transport Import process, SAP_IMPORT_START and SAP_IMPORT_STOP
    You can define your actions according to your needs with jobs scheduled to be triggered on these events.
    So basically you write your program to run the checks you need before import starts and take actions necessary.
    However there are some limitations around this:
    Check this link:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/ef/09745ec0c011d2b437006094b9ea64/frameset.htm
    Regards,
    Siddhesh

  • Why doesn't default CREATE USER form show a "Check"  Page before submitting

    Hi
    Interesting question.
    When I create a User (using my Customized Create User Form), and I press SAVE, the Form is submitted immediately. There is no "stop-and-check" page, which allows one to review the entries made BEFORE submitting the form itself.
    For example : when EDITING or UPDATING a User, and you press "Save", the form is not submitted right away. Instead, a new page opens, where you can review the changes you made, to ensure that they are correct. In fact, at the bottom of this new page, there are 4 standard buttons : SAVE...........RETURN TO EDIT............CANCEL
    This is a very good system, because it allows you to check your entries, and make sure they are correct, before pressing SAVE again to submit.
    However, the "Create User" form does not have this same arrangement.
    Is there any way to customize the Form, so that, when creating a User, and you press SAVE, a "check-page" first shows up (just like when updating/editing a user) ?
    Thanks

    Hi
    Interesting question.
    When I create a User (using my Customized Create User Form), and I press SAVE, the Form is submitted immediately. There is no "stop-and-check" page, which allows one to review the entries made BEFORE submitting the form itself.
    For example : when EDITING or UPDATING a User, and you press "Save", the form is not submitted right away. Instead, a new page opens, where you can review the changes you made, to ensure that they are correct. In fact, at the bottom of this new page, there are 4 standard buttons : SAVE...........RETURN TO EDIT............CANCEL
    This is a very good system, because it allows you to check your entries, and make sure they are correct, before pressing SAVE again to submit.
    However, the "Create User" form does not have this same arrangement.
    Is there any way to customize the Form, so that, when creating a User, and you press SAVE, a "check-page" first shows up (just like when updating/editing a user) ?
    Thanks

  • AM console - Unable to create Users

    I'm unable to create users under any organization through AM console. I'm getting the following error in amProfile_ldap.
    12/04/2006 10:19:03:585 AM CST: Thread[service-j2ee-2,5,main]
    WARNING: DirectoryServicesImpl.createUser(): Internal Error occurred. Unable to create User Entry
    com.iplanet.ums.UMSException: Unable to add the entry "uid=scott,ou=People,o=testorg,dc=test,dc=com"::null. Root exception is
    netscape.ldap.LDAPException: error result (65); Object class violation
    at netscape.ldap.LDAPConnection.checkMsg(LDAPConnection.java:4866)
    at netscape.ldap.LDAPConnection.add(LDAPConnection.java:2851)
    at netscape.ldap.LDAPConnection.add(LDAPConnection.java:2866)
    at netscape.ldap.LDAPConnection.add(LDAPConnection.java:2816)
    at com.iplanet.ums.DataLayer.addEntry(DataLayer.java:432)
    at com.iplanet.ums.PersistentObject.addChild(PersistentObject.java:722)
    at com.iplanet.am.sdk.ldap.DirectoryServicesImpl.createUser(DirectoryServicesImpl.java:998)
    at com.iplanet.am.sdk.ldap.DirectoryServicesImpl.createEntry(DirectoryServicesImpl.java:1490)
    at com.iplanet.am.sdk.ldap.CachedDirectoryServicesImpl.createEntry(CachedDirectoryServicesImpl.java:349)
    at com.iplanet.am.sdk.AMObjectImpl.create(AMObjectImpl.java:1001)
    at com.iplanet.am.sdk.AMPeopleContainerImpl.createUsers(AMPeopleContainerImpl.java:190)
    at com.iplanet.am.console.user.model.UMCreateUserModelImpl.createUser(UMCreateUserModelImpl.java:356)
    at com.iplanet.am.console.user.UMCreateUserViewBean.createUser(UMCreateUserViewBean.java:490)
    at com.iplanet.am.console.user.UMCreateUserViewBean.handleBtnCreateRequest(UMCreateUserViewBean.java:368)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.iplanet.jato.view.command.DefaultRequestHandlingCommand.execute(DefaultRequestHandlingCommand.java:183)
    at com.iplanet.jato.view.RequestHandlingViewBase.handleRequest(RequestHandlingViewBase.java:308)
    at com.iplanet.jato.view.ViewBeanBase.dispatchInvocation(ViewBeanBase.java:802)
    at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandlerInternal(ViewBeanBase.java:740)
    at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandler(ViewBeanBase.java:571)
    at com.iplanet.jato.ApplicationServletBase.dispatchRequest(ApplicationServletBase.java:957)
    at com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:615)
    at com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase.java:473)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:807)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:580)
    12/04/2006 10:19:03:597 AM CST: Thread[service-j2ee-2,5,main]
    In CachedDirectoryServicesImpl.getAttributes(SSOToken entryDN, attrNames, ignoreCompliance, byteValues) (cn=dsameuser,ou=dsame
    users,dc=test,dc=com, o=testorg,dc=test,dc=com, [sunRegisteredServiceName], true, false method.
    12/04/2006 10:19:03:598 AM CST: Thread[service-j2ee-2,5,main]
    CachedDirectoryServicesImpl.getAttributes(): found all attributes in Cache.
    12/04/2006 10:19:03:598 AM CST: Thread[service-j2ee-2,5,main]
    DirectoryServicesImpl.getRegisteredServiceNames() Registered Service Names for entryDN: o=testorg,dc=test,dc=com are: [iPlanet
    AMSessionService, iPlanetAMAuthMembershipService, iPlanetAMAdminConsoleService, iPlanetAMAuthService, iPlanetAMPolicyConfigSer
    vice, iPlanetAMAuthLDAPMultiService, iPlanetAMUserService, iPlanetAMAuthAnonymousService, iPlanetAMAuthConfiguration, iPlanetA
    MAuthLDAPService, SunPortalDesktopService, sunAMAuthSAMLService, srapGatewayAccessService]
    12/04/2006 10:19:03:599 AM CST: Thread[service-j2ee-2,5,main]
    CachedDirectoryServicesImpl.getOrganizationDN() - looping Organization DN for entry: o=testorg,dc=test,dc=com
    12/04/2006 10:19:03:600 AM CST: Thread[service-j2ee-2,5,main]
    CachedDirectoryServicesImpl.getOrganizationDN(): found OrganizationDN: o=testorg,dc=test,dc=com for: o=testorg,dc=test,dc=com
    12/04/2006 10:19:03:631 AM CST: Thread[service-j2ee-2,5,main]
    CachedDirectoryServicesImpl.doesEntryExist(): entryDN: uid=amAdmin,ou=People,dc=test,dc=com found in cache & exists: true
    12/04/2006 10:19:03:642 AM CST: Thread[service-j2ee-2,5,main]
    CachedDirectoryServicesImpl.getOrganizationDN() - looping Organization DN for entry: o=testorg,dc=test,dc=com
    12/04/2006 10:19:03:642 AM CST: Thread[service-j2ee-2,5,main]
    CachedDirectoryServicesImpl.getOrganizationDN(): found OrganizationDN: o=testorg,dc=test,dc=com for: o=testorg,dc=test,dc=com
    I'm really not sure what change caused this to happen. I can't import any user specific ldif files through DS console as well. I appreciate if somebody guides me how to correct this?
    Thanks in advance,
    lakshmi

    Lakshmi.Panala wrote:
    I'm unable to create users under any organization through AM console. I'm getting the following error in amProfile_ldap.
    12/04/2006 10:19:03:585 AM CST: Thread[service-j2ee-2,5,main]
    WARNING: DirectoryServicesImpl.createUser(): Internal Error occurred. Unable to create User Entry
    com.iplanet.ums.UMSException: Unable to add the entry "uid=scott,ou=People,o=testorg,dc=test,dc=com"::null. Root exception is
    netscape.ldap.LDAPException: error result (65); Object class violation
    at netscape.ldap.LDAPConnection.checkMsg(LDAPConnection.java:4866)
    at netscape.ldap.LDAPConnection.add(LDAPConnection.java:2851)
    at netscape.ldap.LDAPConnection.add(LDAPConnection.java:2866)
    at netscape.ldap.LDAPConnection.add(LDAPConnection.java:2816)
    at com.iplanet.ums.DataLayer.addEntry(DataLayer.java:432)
    at com.iplanet.ums.PersistentObject.addChild(PersistentObject.java:722)
    at com.iplanet.am.sdk.ldap.DirectoryServicesImpl.createUser(DirectoryServicesImpl.java:998)
    at com.iplanet.am.sdk.ldap.DirectoryServicesImpl.createEntry(DirectoryServicesImpl.java:1490)
    at com.iplanet.am.sdk.ldap.CachedDirectoryServicesImpl.createEntry(CachedDirectoryServicesImpl.java:349)
    at com.iplanet.am.sdk.AMObjectImpl.create(AMObjectImpl.java:1001)
    at com.iplanet.am.sdk.AMPeopleContainerImpl.createUsers(AMPeopleContainerImpl.java:190)
    at com.iplanet.am.console.user.model.UMCreateUserModelImpl.createUser(UMCreateUserModelImpl.java:356)
    at com.iplanet.am.console.user.UMCreateUserViewBean.createUser(UMCreateUserViewBean.java:490)
    at com.iplanet.am.console.user.UMCreateUserViewBean.handleBtnCreateRequest(UMCreateUserViewBean.java:368)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.iplanet.jato.view.command.DefaultRequestHandlingCommand.execute(DefaultRequestHandlingCommand.java:183)
    at com.iplanet.jato.view.RequestHandlingViewBase.handleRequest(RequestHandlingViewBase.java:308)
    at com.iplanet.jato.view.ViewBeanBase.dispatchInvocation(ViewBeanBase.java:802)
    at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandlerInternal(ViewBeanBase.java:740)
    at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandler(ViewBeanBase.java:571)
    at com.iplanet.jato.ApplicationServletBase.dispatchRequest(ApplicationServletBase.java:957)
    at com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:615)
    at com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase.java:473)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:807)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:580)
    12/04/2006 10:19:03:597 AM CST: Thread[service-j2ee-2,5,main]
    In CachedDirectoryServicesImpl.getAttributes(SSOToken entryDN, attrNames, ignoreCompliance, byteValues) (cn=dsameuser,ou=dsame
    users,dc=test,dc=com, o=testorg,dc=test,dc=com, [sunRegisteredServiceName], true, false method.
    12/04/2006 10:19:03:598 AM CST: Thread[service-j2ee-2,5,main]
    CachedDirectoryServicesImpl.getAttributes(): found all attributes in Cache.
    12/04/2006 10:19:03:598 AM CST: Thread[service-j2ee-2,5,main]
    DirectoryServicesImpl.getRegisteredServiceNames() Registered Service Names for entryDN: o=testorg,dc=test,dc=com are: [iPlanet
    AMSessionService, iPlanetAMAuthMembershipService, iPlanetAMAdminConsoleService, iPlanetAMAuthService, iPlanetAMPolicyConfigSer
    vice, iPlanetAMAuthLDAPMultiService, iPlanetAMUserService, iPlanetAMAuthAnonymousService, iPlanetAMAuthConfiguration, iPlanetA
    MAuthLDAPService, SunPortalDesktopService, sunAMAuthSAMLService, srapGatewayAccessService]
    12/04/2006 10:19:03:599 AM CST: Thread[service-j2ee-2,5,main]
    CachedDirectoryServicesImpl.getOrganizationDN() - looping Organization DN for entry: o=testorg,dc=test,dc=com
    12/04/2006 10:19:03:600 AM CST: Thread[service-j2ee-2,5,main]
    CachedDirectoryServicesImpl.getOrganizationDN(): found OrganizationDN: o=testorg,dc=test,dc=com for: o=testorg,dc=test,dc=com
    12/04/2006 10:19:03:631 AM CST: Thread[service-j2ee-2,5,main]
    CachedDirectoryServicesImpl.doesEntryExist(): entryDN: uid=amAdmin,ou=People,dc=test,dc=com found in cache & exists: true
    12/04/2006 10:19:03:642 AM CST: Thread[service-j2ee-2,5,main]
    CachedDirectoryServicesImpl.getOrganizationDN() - looping Organization DN for entry: o=testorg,dc=test,dc=com
    12/04/2006 10:19:03:642 AM CST: Thread[service-j2ee-2,5,main]
    CachedDirectoryServicesImpl.getOrganizationDN(): found OrganizationDN: o=testorg,dc=test,dc=com for: o=testorg,dc=test,dc=com
    I'm really not sure what change caused this to happen. I can't import any user specific ldif files through DS console as well. I appreciate if somebody guides me how to correct this?
    Thanks in advance,
    lakshmiWhat you need to do is to check directory logs in order to see what is the specific object class violation. If your AM instance was working before, something nasty should have happened in directory. Check logs and schema files.
    Regards

  • How to create User Portal in OID programmatically in JSP

    Hi.
    I want to create User Portal programmatically in JSP (if posible) or have to use procedure.
    I check with package wwsec_api, it just have 'function
    add_portal_user', but it say we must have "the user must already exist in OID before this function is called."
    So, i checked for 'how to create User in OID'. What i got (in metalink)just methods that 'Create manually Portal Users in to OID' by LDAP or PL/SQL coding (with list of user in flat files).
    What i want to do is, How to create User POrtal in OID by JSP? What are the procedure/table/method involved?
    Do anybody have any samples?..
    Thanks.

    I had to write my own because I could not find one anywhere. Here is an addUser() method that seems to work pretty well.
    import oracle.ldap.util.jndi.ConnectionUtil;
    import javax.naming.directory.*;
    import javax.naming.*;
    public class LdapUser
    public LdapUser(){}
    public void addUser(String pUsername, String pPassword, String pFirstName, String pLastName, String pEmail)
    try
    InitialDirContext ctx = ConnectionUtil.getDefaultDirCtx("host", "port", "orcladmin", "pwd");
    BasicAttributes attrs = new BasicAttributes();
    BasicAttribute oc = new BasicAttribute("objectclass");
    oc.add("top");
    oc.add("person");
    oc.add("inetOrgPerson");
    oc.add("organizationalPerson");
    oc.add("orclUser");
    oc.add("orclUserV2");
    attrs.put(oc);
    BasicAttribute gn = new BasicAttribute("givenName", pFirstName);
    attrs.put(gn);
    BasicAttribute sn = new BasicAttribute("sn", pLastName);
    attrs.put(sn);
    BasicAttribute cn = new BasicAttribute("mail", pEmail);
    attrs.put(cn);
    BasicAttribute pwd = new BasicAttribute("userpassword", pPassword);
    attrs.put(pwd);
    // Etcetera, etcetera...
    ctx.createSubcontext("cn="+pUsername+",cn=users,dc=whatever,dc=com", attrs);
    ctx.close();
    System.out.println("Success!!");
    catch (NameAlreadyBoundException nabe)
    System.out.println("Username is already in use. Please choose another.");
    catch (NamingException ne)
    System.out.println("NamingException: " + ne);
    catch (Exception e)
    System.out.println("User account was not created.");
    }

  • Creating users in new 10g instance

    I am upgrading a production database from 8i on Win NT to 10g on linux. I want to create the production users from the 8i db on the new 10g database without having to have them reset their passwords. We want this to be a seemless migration for our end users. How can we go about this?

    Sounds like a full export and full import is what you're after, but in case you need to do a user level, you can do the before:
    in your 8i database, as internal or sys select:
    username, password, temporary tablespace, default tablespace from dba_users for each user
    system privs from dba_sys_privs for each user
    roles from dba_role_privs for each user
    something like:
    SQL>spool c:\somewhere\copyusers.sql
    SQL>select 'create user '||username||' identified by '|| password||' default tablespace '||default_tablespace||' temporary tablespace '||temporary_tablespace||';' from dba_users where username IN('list_of_users);
    SQL>spool off
    Or use whatever where clause you need to or none at all.
    then do similar for dba_sys_privs and sys_role_privs.
    or if you have the time you can join all three into one script.
    then run the scripts in the 10g database and you'll have your users. then you can do a user level import or whatever you need to do.
    US

  • Steps to Follow before import

    Hi,
    We are planning to migrate Oracle 8i database to Oracle 10g Database.
    Approach that we have decided is export/Import.
    Can anyone tell me what all steps we have to perform before importing dmp to new database?
    We are planning to go for schema level export/import.
    Thanks in Advance
    AT

    Hi,
    You want perform import schema by schema?
    You can perform a full export or schema level export. Remember that to move data UP a version, you export using the EXP of the database that contains the data and you import using the IMP that ships with the TARGET database.
    Then, to move data from 8i to 10g:
    o exp over sqlnet to the 8i database.
    o imp natively into the 10g database.
    I suggest you to create all user data tablespaces into target database, before make a import.
    For more information, you can access this link below:
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14238/expimp.htm#CHDDCIHD
    Cheers

  • Create User With JMX

    Attempting to invoke the createUser operation (using Version 10.0) is resulting in:
    Runtime Exception while calling invoke. Invoking management operations on Realm, UserLockoutManager and Security Provider MBeans via Edit MBeanServer is illegal.
    I can see nothing in the docs that says this opertaion is not permitted. Is there an example somewhere of code that successfully does this in case I'm missing something?

    Hi Gabi,
    oops, sent that previous post by accident before I was done... <grin>
    Here is how you want to do it programmatically
    BasicRealm realm = Security.getRealm(); //weblogic.sercurity.acl
    ListableRealm realmDump = null;
    //cast the realmDump to ListableRealm so we can call methods like newUser, newGroup, etc.
    try {
    realmDump = (ListableRealm)realm;
    } catch (Throwable t) {
    System.out.println("Could not cast realm to realmdump -- the realmClass is not a
    ListableRealm");
    out.print("Could not cast realm to realmdump -- the realmClass is not a
    ListableRealm");
    //now you can call any ListableRealm method off of realmDump
    //for example....
    Enumeration enum = realmDump.getGroups();
    That should do it. You could put that code in a servlet or JSP and it will work just fine.
    I'm not sure exactly what packages you need to import, other than the fact that
    weblogic.security.* will be a must
    Cheers,
    Joe Jerry
    Gabi wrote:
    Hi,
    In a production environment, where there is a need to set the environment in a
    transparent way (to the user), is it possible to create User/Group/ACL programmatically?
    that is, for instance, using the management extension (JMX) to get a security
    MBean with a "create user" operation.
    cheers,
    Gabi,

  • "The CREATE USER statement must be the only statement in the batch" in SQL Azure - why? what to do?

    I'm getting an error on a line in the middle of a larger sql script, only in SQL Azure.
    IF NOT EXISTS (SELECT * FROM sys.database_principals WHERE name = N'foouser')
    CREATE USER [foouser] FOR LOGIN [foouser] WITH DEFAULT_SCHEMA=[dbo]
    GO
    Error: "The CREATE USER statement must be the only statement in the batch."
    I don't actually understand what 'the only statement in the batch' means.
    What is a batch? Is it a SQL file? Is it related to a 'GO' statement or an 'IF' statement? What is the reason for the error? And how do I avoid it?
    Thanks,
    Tim

    >IF...ELSE imposes conditions on the execution of a Transact-SQL statement
    I understand the general purpose of an If statement. I could let go of our definition of statement counting disagreeing too except that because of the error I'm stuck.
    It's less important for Create User but what I am really puzzled over now is a very similar issue how am I supposed to do a safe version of CREATE LOGIN, when I don't know whether a login has been previously created on the server or whether I
    am setting up the database on a clean server?
    IF NOT EXISTS (SELECT * FROM sys.server_principals WHERE name = N'foouser')
    CREATE LOGIN [foouser] WITH PASSWORD = 'asdfasdf'
    GO
    If I try and execute this script, it throws the same error as above.
    The first unworkable workaround idea is to omit the if statement
    CREATE LOGIN [foouser] WITH PASSWORD = 'asdfasdf'
    GO
    But if the login already exists on the server (because a similar script was already run), then the script throws an error.
    The second unworkable workaround idea is to do
    DROP LOGIN [foouser]
    GO
    CREATE LOGIN [foouser] WITH PASSWORD = 'asdfasdf'
    GO
    Obviously this throws an error in the second block if the login doesn't already exist on the server.
    The third workaround idea I have is to go conditional by putting an IF condition around DROP instead of CREATE:
    Unfortunately that doesn't work for me either!
    "The DROP LOGIN statement must be the only statement in the batch"
    (This is despite the fact that 'drop login' is listed on the
    supported commands page, not the partially supported page..?! Which disagrees with the notes on
    this page.)
    Anyway the real question I am interesting in addressing is: is there actually a way to have a 'Create/Delete login
    if exists' operation which is SQL-Azure compatible and doesn't throw me error messages (which messes with the sql execution tool I am using)?
    If there is no way, I would like to believe it's because it would be a bad idea to do this. But in that case why is it a bad idea?
    Tim

  • How to create user defined button in alv report

    how to create user defined button in alv report
    thnks in advance.

    Hi,
    U can define it the the PF-STATUS ( Menu for ALV ).
    For that u have to define it in the EVENTCAT.
    form z_eventcat  using    p_i_eventcat type slis_t_event.
      data: i_event type slis_alv_event.
      call function 'REUSE_ALV_EVENTS_GET'
        exporting
          i_list_type     = 0
        importing
          et_events       = p_i_eventcat
        exceptions
          list_type_wrong = 1
          others          = 2.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
      clear i_event.
      read table p_i_eventcat with key name = slis_ev_top_of_page into
      i_event.
      if sy-subrc = 0.
        move 'TOP_OF_PAGE' to i_event-form.
        append i_event to p_i_eventcat.
      endif.
      read table p_i_eventcat with key name = slis_ev_pf_status_set into i_event.
      if sy-subrc = 0.
        move 'SET_PF_STATUS' to i_event-form.
        append i_event to p_i_eventcat.
      endif.
      clear i_event.
      read table p_i_eventcat into i_event with key name = slis_ev_user_command .
      if sy-subrc = 0.
        move 'USER_COMMAND' to i_event-form.
        append i_event to p_i_eventcat.
      endif.
    And in the DISPLAY
    call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
         i_callback_program                = v_progname
         i_callback_pf_status_set          = 'SET_PF_STATUS'
         i_callback_user_command           = 'USER_COMMAND'
         i_callback_top_of_page            = 'TOP_OF_PAGE'
         i_grid_title                      = v_gridtitle
         i_save                            = 'A'
         is_layout                         = i_layout
         it_fieldcat                       = i_fieldcat[]
         it_sort                           = i_sortinfo
         it_events                         = i_eventcat
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        tables
          t_outtab                          = it_final
       exceptions
         program_error                     = 1
         others                            = 2
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    *MENU SETTINGS.
    form set_pf_status using rt_extab type slis_t_extab.
      set pf-status 'ALV_MENU'.
    endform.                    "SET_PF_STATUS
    endform.                    " Z_EVENTCAT
    Now double click on ALV MENU nad u can create a button in the application bar.
    Regards,
    Pritha.

  • Error While creating User using userservcenter Webservice

    Hi All,
    I have generated the java client stub from the um_workflowSaveCreateProfile.wsdl file successfully and I have developed one client code to call the web service to create user in Oracle Internet Directory.
    I am invoking one workflow for creation of the user which accepts four attributes (sn, cn, uid, userPassword),it is working fine when sn, cn, uid attributes are mandatory only, but if I make userPassord as mandatory, it is showing me error : Not all of the required parameters for this operation were specified.
    I am using the below client Code to call the service:
    package com.example;
    import java.util.Properties;
    import org.apache.axis.AxisFault;
    import com.oblix.CreateUser.*;
    public class CreateUserClient {
    public static void main(String Args[]) throws AxisFault{
    try{
    OblixIDXML_um_workflowSaveCreateProfile_ServiceLocator loc = new OblixIDXML_um_workflowSaveCreateProfile_ServiceLocator();
    OblixIDXMLPortType port = loc.getOblixIDXML_um_workflowSaveCreateProfile_Port();
    Authentication myauth = new Authentication();
    myauth.setLogin("orcladmin");
    myauth.setPassword("1111Aaaa");
    Request myrequest = new Request();
    myrequest.setFunction("workflowSaveCreateProfile");
    myrequest.setApplication("userservcenter");
    myrequest.setVersion("NPWSDL1.0");
    RequestParams myparams = new RequestParams();
    myparams.setObDomainName("dc=ad,dc=company,dc=com");
    //myparams.setObWorkflowName("obworkflowid=wfqs20090206T1424241321438,obcontainerId=workflowDefinitions,o=Oblix,dc=ad,dc=company,dc=com");
    myparams.setObWorkflowName("obworkflowid=wfqs20090206T170318571544,obcontainerId=workflowDefinitions,o=Oblix,dc=ad,dc=company,dc=com");
    java.math.BigInteger myint2 = new java.math.BigInteger("4");
    myparams.setNoOfFields(myint2);
    AttributeParams attributeParams = new AttributeParams();
    GenericAttribute []genericAttribute = new GenericAttribute[10];
    GenericAttribute mygenericattr = new GenericAttribute();
    mygenericattr.setAttrName("cn");
    mygenericattr.setAttrOperation("ADD");
    String[] cn = {"Akshay"};
    mygenericattr.setAttrNewValue(cn);
    genericAttribute[0] = mygenericattr;
    GenericAttribute mygenericattr1 = new GenericAttribute();
    mygenericattr1.setAttrName("sn");
    mygenericattr1.setAttrOperation("ADD");
    String[] sn = {"koul"};
    mygenericattr1.setAttrNewValue(sn);
    genericAttribute[1] = mygenericattr1;
    GenericAttribute mygenericattr3 = new GenericAttribute();
    mygenericattr3.setAttrName("uid");
    mygenericattr3.setAttrOperation("ADD");
    String[] uid = {"akshay_koul"};
    mygenericattr3.setAttrNewValue(uid);
    genericAttribute[2] = mygenericattr3;
    PasswordAttribute []pwdatrarr= new PasswordAttribute[1];
    PasswordAttribute pwdatr= new PasswordAttribute();
    pwdatr.setAttrName("userPassword");
    pwdatr.setAttrOperation("ADD");
    pwdatr.setAttrNewValue("abcd1234");
    pwdatr.setAttrConfirmValue("abcd1234");
    pwdatrarr[0] = pwdatr;
    System.out.println("the pwd is"+pwdatrarr.toString());
    attributeParams.setGenericAttribute(genericAttribute);
    attributeParams.setPasswordAttribute(pwdatrarr);
    myparams.setAttributeParams(attributeParams);
    myrequest.setParams(myparams);
    Oblix output = port.oblixIDXML_um_workflowSaveCreateProfile(myauth, myrequest);
    System.out.println("result of the request\n");
    System.out.println();
    //System.out.println("test:"+output.getObError().getObStatus());
    // System.out.println("test1:"+output.getObError().getObRequestInfo());
    System.out.println("test2:"+output.getObError().getObTextMessage()[0].toString());
    System.out.println("test2:"+output.getObError().getObTextMessage()[0]);
    System.out.println("test3:"+output.getObError().getObTextMessage(0));
    System.out.println("status is " + output.getObStatus());
    }catch(Exception e){
    System.out.println("the exception is:"+e.getMessage());
    e.printStackTrace();
    Please suggest me where i am wrong !!!
    Thanks in Advance
    Akshay

    Hi,
    I guess, create workflow does not accept the password attribute while creating user account.
    You have to create the account using createprofile web service then update the password using changeprofile web service.
    I think this limitation is strategic, if you have password policies enabled, policies are applied to the container of the accounts.
    So OAM needs to have the DN of the user account to check if there are any password policies associated with the container during password updates,
    which might not be possible while using createProfile web service.
    - Sandeep

Maybe you are looking for

  • JSeparator is not getting displayed in Flowlayout !!!

    Hi all, I was trying to put a vertical JSeparator between two buttons placed in a panel having Flowlayout; it simply doesn't show up. What could be the reason? and if it is a bug or known behaviour, what is the work around avilable. The other two lay

  • RCF _periodical service error - TREX

    we have setup TREX for e recruitment search. i can search through tcode SKPR07* successfully. When i run RCF_Periodical_services from sa38 or sm36. i get this error The periodic service was not performed due to a conflicting service Message no. HRRCF

  • ICF Connector issue

    I am trying to create new connector for testing OIM connector. I have developed a sample application and deployed on Connector Server. Please can you let me know where I am doing wrong. Am I passing the wrong key to the program. Steps followed to sta

  • I have 2 IMacs and MacBook Pro- can not work on FCP simultaneously when my network ports are on (open). How do I go about changing this?

    Hi! I have 2 IMacs and MacBook Pro and can not work simultaneously on FCP on all workstations when the network port is open. Can anyone help me on this?

  • Excessive trace files in 11G on AIX 6.1

    Hello friends, I have a few new Oracle 11g (11.1.0.7) databases running on IBM P560's, AIX 6.1. After a few weeks of running these databases, I've noticed an excessive amount of trace files generated in the $ORACLE_BASE/diag/.../trace directory for v