Renaming user in oracle 9i

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Adil Akbar
    New Member
    • Feb 2007
    • 1

    Renaming user in oracle 9i

    hi guys!
    Can i change the name of users which i have created?
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    sorry dear,

    Oracle does not support this till now.
    Not even in 10.2 version

    Comment

    • vijaydiwakar
      Contributor
      • Feb 2007
      • 579

      #3
      Originally posted by Adil Akbar
      hi guys!
      Can i change the name of users which i have created?
      I think it may be possible try to use Oracle Enterprise Manager

      Comment

      • srikanthutpala
        New Member
        • Jul 2007
        • 1

        #4
        Originally posted by vijaydiwakar
        I think it may be possible try to use Oracle Enterprise Manager

        hi
        u can not rename the user directly. but can rename user using bllow steps

        1) take the user level export of <userA>
        2) Create the user <user B>
        3) import the user A export dump in to user B
        4) drop the user <user A>

        Comment

        • debasisdas
          Recognized Expert Expert
          • Dec 2006
          • 8119

          #5
          Dear srikanthutpala

          do u understand the word RENAME.

          Comment

          • sanora600
            New Member
            • Jul 2007
            • 2

            #6
            It is no way you can change the User name (schema name). you can rename fields, table and other objects but not schema directly.

            The same result can be achieve by using export and imortp.
            1. take schema level export
            2. create the required user.
            3. import the exported dump
            4. delete the old users.

            Comment

            • gouthamirao
              New Member
              • Feb 2009
              • 3

              #7
              I have created a user and inserted some tables with data using oracle9i. Can I know to which database these tables and user belong to? Do we have any command for knowing that?

              Comment

              • debasisdas
                Recognized Expert Expert
                • Dec 2006
                • 8119

                #8
                Originally posted by gouthamirao
                I have created a user and inserted some tables with data using oracle9i. Can I know to which database these tables and user belong to? Do we have any command for knowing that?

                that really sounds funny, how can you login without knowing the name of the database .Where you have created the user from which login ?

                Comment

                • gouthamirao
                  New Member
                  • Feb 2009
                  • 3

                  #9
                  I have created a user with a password by logging in as sysdba. I dint specify the database name over there. Then I logged in by that username and password and created tables.

                  Comment

                  • debasisdas
                    Recognized Expert Expert
                    • Dec 2006
                    • 8119

                    #10
                    what is the name that u specified at the time of creation of database.
                    by default that will be ORCL

                    if that is a local database in windows machine check the service name or in the TNSNAMES.ORA file.

                    else try the following

                    Code:
                    select instance_name,version from v$instance

                    Comment

                    Working...