Altering the username........

Please help the problem...
I am using Oracle 11g on my XP system
First i logon as sysdba... and created a user called "emp" by the statement below
SQL> create user emp identified by a;
User created.
SQL> grant all privileges to emp;
Grant succeeded.
SQL> conn
Enter user-name: emp
Connected.
SQL> connect / as sysdba
Connected.
SQL> select user#,name from user$;
USER# NAME
0 SYS
1 PUBLIC
2 CONNECT
3 RESOURCE
4 DBA
5 SYSTEM
6 SELECT_CATALOG_ROLE
7 EXECUTE_CATALOG_ROLE
8 DELETE_CATALOG_ROLE
9 OUTLN
10 EXP_FULL_DATABASE
USER# NAME
11 IMP_FULL_DATABASE
12 LOGSTDBY_ADMINISTRATOR
13 DIP
14 TSMSYS
15 AQ_ADMINISTRATOR_ROLE
16 AQ_USER_ROLE
17 DATAPUMP_EXP_FULL_DATABASE
18 DATAPUMP_IMP_FULL_DATABASE
19 GATHER_SYSTEM_STATISTICS
20 ORACLE_OCM
41 XDB
USER# NAME
21 RECOVERY_CATALOG_OWNER
22 SCHEDULER_ADMIN
23 HS_ADMIN_ROLE
24 GLOBAL_AQ_USER_ROLE
25 OEM_ADVISOR
26 OEM_MONITOR
27 DBSNMP
28 WMSYS
29 WM_ADMIN_ROLE
30 JAVAUSERPRIV
31 JAVAIDPRIV
USER# NAME
32 JAVASYSPRIV
33 JAVADEBUGPRIV
34 EJBCLIENT
35 JMXSERVER
36 JAVA_ADMIN
37 JAVA_DEPLOY
38 EXFSYS
39 CTXSYS
40 CTXAPP
2147483638 XS$NULL
42 ANONYMOUS
USER# NAME
43 XDBADMIN
44 XDB_SET_INVOKER
45 AUTHENTICATEDUSER
46 XDB_WEBSERVICES
47 XDB_WEBSERVICES_WITH_PUBLIC
48 XDB_WEBSERVICES_OVER_HTTP
61 SPATIAL_WFS_ADMIN
49 ORDSYS
50 ORDPLUGINS
51 SI_INFORMTN_SCHEMA
52 MDSYS
USER# NAME
53 ORDADMIN
54 OLAPI_TRACE_USER
55 OLAP_XS_ADMIN
56 OLAPSYS
57 OLAP_DBA
58 CWM_USER
59 OLAP_USER
60 MDDATA
82 HR
62 SPATIAL_WFS_ADMIN_USR
63 WFS_USR_ROLE
USER# NAME
64 SPATIAL_CSW_ADMIN
65 SPATIAL_CSW_ADMIN_USR
66 CSW_USR_ROLE
67 WKSYS
68 WKPROXY
69 WKUSER
70 WK_TEST
71 SYSMAN
72 MGMT_USER
73 MGMT_VIEW
74 FLOWS_FILES
USER# NAME
75 APEX_PUBLIC_USER
76 FLOWS_030000
77 OWBSYS
78 OWB$CLIENT
79 OWB_DESIGNCENTER_VIEW
80 OWB_USER
81 SCOTT
113 NEXTUSER
83 OE
84 IX
85 SH
USER# NAME
86 PM
87 BI
88 A
89 C
91 STUDENT
110 z
112 EMP
108 nat
96 rows selected.
When i attempt to rename my username... then it succeed..
SQL> update user$ set name='dept' where user#=112;
1 row updated.
But now i am trying to logon with my new username "dept" it is not taking ....
SQL> conn
Enter user-name: dept
ERROR:
ORA-01017: invalid username/password; logon denied
and also when i was trying to reset the password of my new username dept it also getting error message
SQL> alter user dept identified by abc;
alter user dept identified by abc
ERROR at line 1:
ORA-01918: user 'DEPT' does not exist
Can you please help me regarding this
.

There is no other solution than to drop and recreate your database.
What you did is absolutely forbidden by Oracle and the pain you are feeling is precisely the pain you deserve to feel for what you did.
About the only question left on the table is whether you deserve the pain because through ignorance, you thought you could drive
the car without getting a driver's license, or through intent, you knew you should have a license before you drove but you did it
anyway.
We can all argue about whether it is or isn't one of the dumbest things about the implementation of users in the Oracle database but
the ONLY approved way to do it is to export the data, create a new user, and reimport the data into a schema owned by the new user.
Count this as an important lesson learned. The Oracle Database is not a toy like MS Access. You MUST read the documentation or
you WILL suffer the consequences.

Similar Messages

  • How to alter the default profile for multiple users

    I am trying to alter the default profile assigned to users during user creation to a new profile. I know to change the profile for one user using the syntax
    alter user abc profile profileabc
    The issue I have is that there are 100's of users under default profile and changing for each of them manually would be difficult. The approach that I see is to write a shell script where I connect to the db and get a list of all the users with default profile. Then I loop through the file making connection to the db each time and executing the alter statement.
    Please help if you think that there can be a more efficient approach to this.
    Thanks

    alter user abc profile profileabcspool newsql.sql
    select 'ALTER USER '|| USERNAME || ' PROFILE NEWPROFILE;' FROM DBA_USERS;
    SPOOL OFF
    @newsql.sql

  • Logon trigger to alter the session parameter

    Hi,
    I want to execute alter session set '_b_tree_bitmap_plans'=false;
    for a user once he logs in.
    I guess it is possible using logon trigger, pls let me know how to?
    Thanks,
    Kumar.

    Ensure that the usage of the statements or settings in the login files is necessary or correct before using it.
    For all users, use glogin.sql. This is located in $ORACLE_HOME/sqlplus/admin
    For each user, use[b] login.sql. This need to be created by the user from sqlplus using the default editor. e.g type ed login at the SQL prompt. This enables the file to be created at the correct home of the OS user(different between Unix and Windows). Note that it is per OS user and not per Oracle user. For instance, every user who connects to the Server as the OS user oracle will run the same login.sql.
    If you enter statements that require logon (just like yours), you will get "Not Connected" error if you normally do sqlplus /nolog. But you will not get it is you connect directly be specifying the username directly or when prompted.
    The scripts will be run at each logon (either by typing sqlplus from os command prompt or using connect command within sqlplus).

  • Getting error while creating a new web app saying "The password supplied with the username domainname\username was not correct. Verify that it was entered correctly and try again"

    Hi ,
    I am trying to create a new web app using Central Administration in Sharepoint 2010 and getting an error "The password supplied with the username  was not correct. Verify that it was entered correctly and try again".
    I tried running this command also "stsadm -o updatefarmcredentials -userlogin <domain\username> -password <newpassword>" but when it got executed it showed me "Access Denied".
    What should i do ??
    Thanks in advance.
    Regards, Anurag

    HI,
    right click on command icon and click run as administrator then use above stsadm commend to update credential. If still you face same issue then try with powershell as mention in below link: (make sure that you open sharepoint powershell as run as administrator)
    http://smartrider.wordpress.com/2010/07/15/powershell-script-to-create-web-application-and-site-collection-in-sharepoint-2010/
    let us know your result
    Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

  • Refreshing Entity Objects after Altering the table

    Hi,
    My Entity Object is based on a table... and View Objects on the Entity Objects. Now if I alter the table (just changing the width of the column), that change is not visible on the Entity Object. Is there any way I can automatically refresh the Entity Objects after altering the table(only column width is changed).
    (Changes made to Entity Objects manually are reflected in the View Object correctly.)
    Regards
    Faiyaz

    'changing the width of the column' means changing the size of the column in the table description in the database. For e.g.. In the original table I had a column OIL_KEY NUMBER(6). Now I change the column to be of size 12 i.e. OIL_KEY NUMBER(12). This does not get refreshed in the Entity Object.

  • How do i send the username and password to yahoo web page through url

    how do i send the username and password to yahoo web page through url i.e as Query string so that my account in yahoo will open...

    If you don't mind using a library, then download and use the Apache HttpClient library. It takes care of all these details for you.

  • Ive got a Mac Pro bought seconf hand, It doesn't allow me to update as the username is blocked to the previous owner, it appears off and can't change it, the box goes directly to password. I have changed the computer username and password but the problem

    Ive got a Mac Pro 2010, bought second hand through eBay. When it comes to update the software, the username is blocked to the previous owner. It appears off and the box goes directly to password. I have tried to reset then to log in in apple store with my login but didn't help. I would appreciate any tips to sort it out
    Thanks fellas

    That machine did not ship with Mountain Lion (Mac OS X 10.8), so that means the copy of Mountain Lion on the machine was purchased by the former owner and is non-transferable. It is permanently linked to his/her Apple ID, so you cannot update or reinstall it.
    What you need to do (which the seller should have done for you) is reinstall the original system that that machine came with. I believe that would be Snow Leopard (Mac OS X 10.6). What you need to do is reinstall that system from the original disks. If the seller did not provide those disks, you can call Apple and get them replaced for a small shipping and handling fee.
    For more info, see:
    http://www.thesafemac.com/how-to-prepare-your-mac-for-sale/

  • PortalPath for Mydashboard is not working when the username contains a "/"

    Hi,
    Our OBIEE application is integrated with a java web application. We are providing links to the dashboards, Mydashboard, Answers and Administration using java and passing the credentials and portal paths to OBIEE using java.
    Every other link is working fine, except the Mydahsboard link. When an username contains a "/" (Ex: xyz/adc.admin), then the mydashboard link is thorwing a path not found exception.
    We tried escaping the user name, encoding the username. Nothing worked.
    Finally removed the portal path from the URL and it is working fine, but lead to another problem.
    The other problem is that, if the user clicks the Mydashboard link and then Dashboard link and again mydashboard link, then the dashboard is coming up, but not the mydashboard.
    As we have removed the portalpath from the url, I guess the portal path of the dashboard is getting cached somewhere and it is being used even for the mydashboard.
    Any ideas, how to get this worked would be appreciated!!
    Thanks!!
    Vasantha.P

    Why do you need user names with /? If this is due to SSO try using the stripWindowsDomain option in your SSO configuration. See this post:
    http://www.clearpeaks.com/blog/oracle-bi-ee/configuring-obiee-to-work-in-single-sign-on-sso-environment-on-iis
    Otherwise you are going to have to convert it to something else or you will have plenty of problems in OBIEE. We ended up replacing it by "_" (underscore) and that worked fine for us.

  • Problem in changin the username at the Step Level

    Hi All,
    I had a small problem with background processing in SM37.I was trying to change a job which was running from my Id to some other Id which I needed to run from.I changed it successfully, but the problem is the job is running under new Id now, but all the steps related to that job are running under my id(i.e., old id) itself.Could anybody please help me out how to change the username at the step level also?
    Thanks in advance...
    Regards,
    Sravanthi

    hi
    ->Log on to the new Id and select the job which was running under old id.
    ->Then,make a duplicate copy of the job from the menu option Job->Copy.
    ->Now, it will ask for a name give the new name
    ->Now, that job will be under new id in Shcheduled status.
    with all the steps being under old id still.
    ->Now, again select that particular newly copied job and
    ->click on step,Select the step by clicking on it.
    ->And, now go to the menu option Job->Change,there u will be able to change the userid from the old one to the one which u wish to have.......That will work fine after releasing the job from Scheduled status to Release status.
    regards
    venkat

  • How can i clear the usernames and passwords history from all login websites?

    how can i clear the usernames and passwords in the log in history of the websites? example when i want to login to my facebook i always type first letter of my e-mail and it comes with the passwords because before i put remember my password, and in other websites so, i just need to delete all this login history and it's not working from the clear everything !!! :S any idea please !! thanks in advance :)

    See:
    http://kb.mozillazine.org/Deleting_autocomplete_entries
    http://kb.mozillazine.org/Password_Manager

  • How to avoid that two or more people altering the same Sales Order

    I'm looking for a way to avoid that two or more people altering the same Sales Order at the same time.
    If someone has entered a Sales Order in the system and something needs to be adjust it can be done by two or more people at the same time. The problem is that when someone is saving these changes, the changes of another person, who is still working on the same order, get lost.
    So what we need is an alert that someone is already using this order and that no other person can make any changes at that time. So the order needs to be blocked for altering for any other person at that time.
    To avoid this I think you have to do something with the Stored Procedure. Or has someone a more simple and better solution. So far I didn't find a standard option in Business One neither a solution in this forum.
    Best regards,
    Tim

    Tim,
    There is nothing in the application settings in Business One that could be used to prevent this.  You may post this to the SDK forum as well and perhaps there is a way to achieve this through SDK.

  • How to avoid that two or more people alter the same Sales Order same time

    I'm looking for a way to avoid that two or more people altering the same Sales Order at the same time.
    If someone has entered a Sales Order in the system and something needs to be adjust it can be done by two or more people at the same time. The problem is that when someone is saving these changes, the changes of another person, who is still working on the same order, get lost.
    So what we need is an alert that someone is already using this order and that no other person can make any changes at that time. So the order needs to be blocked for altering for any other person at that time.
    To avoid this I think you have to do something with the Stored Procedure. Or has someone a more simple and better solution.
    I've already put this thread in the Business One forum and someone suggested to put it in the Business One SDK forum, as there isn't a solution in Business One itself.
    So if someone can give me a direction for a solution I would be very pleased.
    Best regards,
    Tim

    Hi Tim,
    The only thing that comes close to what you want in standard SBO is Data Ownership. However, this can't stop someone editing a document that is already being edited.
    You can't use stored procedures to track which document is open because the SBO_SP_TransactionNotification proc (which is the only one that you are able to customise) is triggered when a document is updated or added (or cancelled or closed) and not when the document is actually being edited in the user-interface.
    You could do this by writing an addon that uses the UI API to trap events in the sales order form. In theory, a sales order is being edited if the sales order form is in Update mode (ie in order for the form to be in Update mode, the user must have selected an existing document and changed the value of at least one field). You can trap the event of the user changing a value and then log the user and document in a table. When other users try to edit the same document, you could check the table and then prevent them changing values. When the first user clicks on the update button (or cancels the update or closes the form etc etc) you can remove the lock on the document. However, I have doubts as to how robust it would be. The problem with this kind of locking solution is that you sometimes get 'stranded' locks (eg user was editing a document when their workstation crashed) and the solution can end up being more troublesome than it is worth.
    Kind Regards,
    Owen

  • My email recently changed and so I updated my Apple ID to reflect my new email, but my Icloud account still shows the old email as the username on both my Iphone and Ipad and for the life of me I can't figure out how to change or delete it.

    My email recently changed and so I updated my Apple ID to reflect my new email, but my Icloud account still shows the old email as the username on both my Iphone and Ipad and for the life of me I can't figure out how to change or delete it.  My password doesn't work with the old email address.  When I look for my old email address in the Apple ID support area it says that the ID doesn't exist.  Help!!!

    You have to go to Settings>iCloud and tap Delete Account, then sign back in with your updated credentials.  This deletes the account and your synced data from your device, but not from iCloud.  Provided you are signing back into the same account and not changing to a different account, your data will be synced back to your device when you sign back in.

  • Hi, I recently changed my username for my iTunes/iCloud account. Can anyone tell me how i change the username on my iCloud iPad? When I go onto setting to change it it keeps the username grey so I can't even select it?

    Hi, I recently changed my username for my iTunes/iCloud account. Can anyone tell me how i change the username on my iCloud iPad? When I go onto setting to change it it keeps the username grey so I can't even select it?

    Welcome to the Apple Community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")
    Providing you are simply updating your existing details and not changing to another account, when you delete your account, all the data that is synced with iCloud will also be deleted from the device (but not from iCloud), but will be synced back to your device when you login again.
    In order to change your Apple ID or password for your iCloud account on your computer, you need to sign out of the account from your computer first, then sign back in using your updated details. (System Preferences > iCloud, click the sign out button)
    In order to change your Apple ID or password for your iTunes account on your iOS device, you need to sign out from your iOS device first, then sign back in using your updated details. (Settings > iTunes & App store, scroll down and tap your ID)
    If you are using iMessages or FaceTime, you will also need to log out and into your ID there too.

  • How to create a movie file of java 3D animation without altering the code?

    Is there a way to create a movie file of a Java 3D animation without altering the source code of the Java 3D animation program???
    Because as what I observed, most of the forum recommends extracting the bufferedimages of the animation. And, then using the bufferedimages to do a movie file. In this way, I will need to add in new code in the animation program in order to extract the bufferedimages.
    So, is there an alternative way?
    My objective is write a program to create movie file of any Java 3D animation.
    Pls advise me. Thanks a million.

    I'm curious as to why FRAPS will record java3d and
    not a java2d app? is there something that Java3d
    sets that makes it recognizable by fraps? or?? could
    someone or messengers ( =D!) explain this for me?Seems that only in JDK 5.0 or later, does the 2D api automatically use a DirectX or OpenGL rendering pipeline (if available).
    Further, these automatic pipelines accelerate polygons and the like, but not low level Graphics2D bit blitting operations.
    There are JOGL apis that allow better control over acceleration, and are considered 'thread safe' (single threaded) whereas DirectX pipelines are not.
    Interesting demos of this here:
    https://jogl-demos.dev.java.net/applettest.html
    and
    http://www.hardcorepawn.com/RandomGL/
    Fraps (commercial) and Taksi (opensource) will reveal that you are actually using acceleration, since they intercept the pipeline at the openGL (and DirectX) level.

Maybe you are looking for