Cannot connect as a new user to second database from SQLPLUS

Hello,
I've created a new database with CREATEDB POLITE jantest.
I connected via sqlplus as system/mgr@ODBC:POLITE:jantest. This
works fine, I run de poldemo.sql file and that worked fine also.
Then I created a user jan identified by jan. Then I tried to
connect to this user with SQLPLUS as
jan/jan@ODBC:POLITE:jantest. I get an error message that the
user does not exist. Then I tried to connect as
scott/tiger@ODBC:POLITE:jantest. This worked, however is was
then connected to the default 'polite' database.
Has anyone experienced the same kind of weird problems.
null

Jan Boersma (guest) wrote:
: Hello,
: I've created a new database with CREATEDB POLITE jantest.
: I connected via sqlplus as system/mgr@ODBC:POLITE:jantest. This
: works fine, I run de poldemo.sql file and that worked fine
also.
: Then I created a user jan identified by jan. Then I tried to
: connect to this user with SQLPLUS as
: jan/jan@ODBC:POLITE:jantest. I get an error message that the
: user does not exist. Then I tried to connect as
: scott/tiger@ODBC:POLITE:jantest. This worked, however is was
: then connected to the default 'polite' database.
: Has anyone experienced the same kind of weird problems.
Response:
when you create a database under oracle lite, you first
configure this database via ODBC(for example give to this
database a sourcename jan) then connect to this database using
system/manager@jan. Thenafter you should grant previllege ddl to
user jan before connecting :
grant ddl to jan
and now you can connect using : connect jan/jan@jan
null

Similar Messages

  • Cannot connect to Host with user name J2EE_ADMIN !!!

    Hi all,
    this exception when deploy from NWDS04s:
    <i><b>Caught exception while checking the login credentials for SAP J2EE Engine. Cannot connect to Host with user name J2EE_ADMIN</b></i>
    Complete exception:
    <i>Result
    => deployment aborted : file:/D:/DOCUME1/VITO1.PAL/LOCALS~1/Temp/temp23237GivaudanNavigation.ear
    Aborted: development component 'GivaudanNavigation'/'local'/'LOKAL'/'0.2006.03.20.16.50.48':
    Caught exception while checking the login credentials for SAP J2EE Engine. Check whether the SAP J2EE Engine is up and running.
    com.sap.engine.deploy.manager.DeployManagerException: ERROR: Cannot connect to Host: [milds2004] with user name: [J2EE_ADMIN]                     Check your login information.                     Exception is: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: Access Denied.]
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.checkLoginCredentials.DMEXC)
    Deployment exception : The deployment of at least one item aborted</i>
    Any help will be appreciate. Thx.
    Vito

    Hi Nagarajan,
    it seems not good
    D:\usr\sap\GVD\DVEBMGS01\SDM\program>sdm changepassword "sdmhome=D:\usr\sap\GVD\
    DVEBMGS01\SDM\program" "newpassword=ADMIN1"
    D:\usr\sap\GVD\DVEBMGS01\SDM\program>set sdm_java_home=D:/j2sdk1.4.2_09
    D:\usr\sap\GVD\DVEBMGS01\SDM\program>set sdm_64bit_switch=
    D:\usr\sap\GVD\DVEBMGS01\SDM\program>set sdm_heap_size=128
    D:\usr\sap\GVD\DVEBMGS01\SDM\program>set sdm_memory_switch=-Xmx128M
    D:\usr\sap\GVD\DVEBMGS01\SDM\program>set sdm_com="D:/j2sdk1.4.2_09\bin\java"  -X
    mx128M  -jar "D:\usr\sap\GVD\DVEBMGS01\SDM\program\bin\SDM.jar"
    D:\usr\sap\GVD\DVEBMGS01\SDM\program>"D:/j2sdk1.4.2_09\bin\java"  -Xmx128M  -jar
    "D:\usr\sap\GVD\DVEBMGS01\SDM\program\bin\SDM.jar" changepassword "sdmhome=D:\u
    sr\sap\GVD\DVEBMGS01\SDM\program" "sdmhome=D:\usr\sap\GVD\DVEBMGS01\SDM\program"
    "newpassword=ADMIN1"
    CompilerOracle: exclude com/sapportals/portal/pb/layout/taglib/ContainerTag addI
    viewResources
    CompilerOracle: exclude com/sap/engine/services/keystore/impl/security/CodeBased
    SecurityConnector getApplicationDomain
    CompilerOracle: exclude com/sap/engine/services/rmi_p4/P4StubSkeletonGenerator g
    enerateStub
    CompilerOracle: exclude com/sapportals/portal/prt/util/StringUtils escapeToJS
    CompilerOracle: exclude com/sapportals/portal/prt/core/broker/PortalServiceItem
    startServices
    CompilerOracle: exclude com/sap/engine/services/webservices/server/deploy/WSConf
    igurationHandler downloadFile
    CompilerOracle: exclude com/sapportals/portal/prt/jndisupport/util/AbstractHiera
    rchicalContext lookup
    Starting SDM - Software Deployment Manager...
    tc/SL/SDM/SDM/sap.com/SAP AG/7.0005.20051006181702.0000
    Initializing Network Manager (50117)
    Checking if another SDM is running on port 50118
    SDM is integrated in JStartupFramework. No repository changing commands are poss
    ible.
    Processing error. Return code: 4
    Could U help, pls? Thx
    Vito

  • Trying to access 10gr2 database from sqlplus utility but it connects to 11g

    Hi All,
    I am facing below issue while access 10gr2 database from sqlplus.
    I am having two oracle homes on one server one belongs to 11gr2 and another belongs to 10gr2.
    I want to access a 10gr2 database through sqlplus utility.but instaed of connecting to 10gr2 it is connecting to 11gr2 after I enter a user name and passowrd.
    I have set all the env variables such as oracle_home ,oracle_sid and path with respect to Oracle 10gr2.
    Can you please let me kno what I need to do to connect to 10gr2 database and not 11gr2 database through sql plus.
    Let me know if I need to give any more details on this.
    Best Regards,
    Dipti S

    Hi Rocky,
    I got the resolution.
    I made a mistake by creating an oracle instance/service(e.g. fsdmo) when Oracle_home was pointing to 11gR2 Directory.so that service was refering to 11gr2 oracle home.
    hence when I was setting oracle_sid(fsdmo) and trying to access database instance from 11g sqlplus utility ,it was directing to 11g and not 10g since oracle service was pointing to 11g.
    So now after chnaging the oracle home directory to 11g,I am creating a service and its working fine.
    thank you so much for responding.
    hope I am clear with my reply.
    Best Regards,
    Dipti S

  • Cannot log in to new user accounts

    I am a long time Apple user and am completely confounded by a problem I am having creating new user accounts on my G4/400 PowerMac running OX 10.4.11. I've been attempting to setup some user accounts for my kids to use. I have no problems setting up the accounts but when I log out of mine and try to log in as them the login window shakes from side to side indicating an incorrect password. This is something that I had a problem a year ago and never solved and today I am trying once again with out success. I feel like I am doing everything correctly since I've been able to do this on my G3 iBook and MacBook.
    Here are a few things I've also done.
    -repaired permissions on the drive ( I have 2 in the machine right now but the other is just my iTunes LIbrary drive)
    -deleted the old user accounts that I setup but couldn't access.
    -tried setting up more new accounts
    -repeated the process several times without ever being able to successfully login to any of the new accounts that I created.
    Any advice to solve this problem would be appreciated.
    Thanks
    Chris

    Hi cc_mac,
    I don't know if you have solved this one yet, but I had exactly the same issue when I recently had a hard drive failure and had to re-install everything. I had copies of all my files, but when I went to set up the user accounts, I could create each account, but I couldn't log in.
    There is a simple solution, you will need to be in an admin account and you will need to use the command line, so open up a terminal window.
    Use the following command for each account you need to fix:
    sudo passwd <username>
    where <username> is the account name that you cannot currently log in to.
    You will need to enter your admin password to allow you to use sudo, so do that. Then you will be asked to type in the new password for the new account. Just to be absolutely sure, you will be asked to re-enter the new password, so do that, and you are done.
    Log out of your admin account, this should bring you back to the log in screen. Now, if everything has gone according to plan, you should have an operational user account.
    I'm not sure what the cause of this issue is but it might be some sort of permissions issue happening in the background. Nevertheless, manually setting the password this way seems to have fixed it for me. I sincerely hope this helps you too.
    Kind Regards,
    Mark D.

  • Cannot connect to a local user in pdborcl

    Hi all,
    I created a local user named "dwh" in the pdborcl (a pdb)...Impossible to connect using sqlplus...(On windows 7)
    So ..
    SELECT v.name, v.open_mode, NVL(v.restricted, 'n/a') "RESTRICTED", d.status
    FROM v$pdbs v, dba_pdbs d
    WHERE v.guid = d.guid
    ORDER BY v.create_scn;
    NAME                           OPEN_MODE  RES STATUS
    PDB$SEED                       READ ONLY  NO  NORMAL
    PDBORCL                        READ WRITE NO  NORMAL
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 12.1.0.1.0 - Produ
    ction
    Start Date                16-D╔C. -2013 08:34:15
    Uptime                    0 days 2 hr. 38 min. 14 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   D:\Oracle\OracleDb12c\product\12.1.0\dbhome_1\network\
    admin\listener.ora
    Listener Log File         D:\Oracle\OracleDb12c\diag\tnslsnr\CHPRUVOS-FR\listene
    r\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=CHPRUVOS-FR.fr.oracle.com)(PORT=1521
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=CHPRUVOS-FR.fr.oracle.com)(PORT=550
    1))(Security=(my_wallet_directory=D:\ORACLE\ORACLEDB12C\admin\orcl\xdb_wallet))(
    Presentation=HTTP)(Session=RAW))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=CHPRUVOS-FR.fr.oracle.com)(PORT=550
    0))(Security=(my_wallet_directory=D:\ORACLE\ORACLEDB12C\admin\orcl\xdb_wallet))(
    Presentation=HTTP)(Session=RAW))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl.fr.oracle.com" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB.fr.oracle.com" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "pdborcl.fr.oracle.com" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    and in tnsnames.ora
    PDBORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = CHPRUVOS-FR.fr.oracle.com)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = pdborcl.fr.oracle.com)
    When doing tnsping PDBORCL --> TNS-03505: Failed to resolve name
    What is wrong ?

    I created a local user named "dwh" in the pdborcl (a pdb)...Impossible to connect using sqlplus...(
    You haven't posted ANYTHING showing that you cannot connect to that user using sql*plus.
    If you have a problem connecting post the EXACT command you are using and the results that you get.
    When doing tnsping PDBORCL --> TNS-03505: Failed to resolve name
    What is wrong ?
    What is 'wrong' is that 'PDBORCL' is NOT a service name. The service name is 'pdborcl.fr.oracle.com'.
    Use s service name when you use tnsping.

  • Cannot copy or create new user in portal

    Hi all,
    I have tried to create new users in dual stack abap & java installation. However, j2ee_admin and sap* both display critical stop with message "An error has occured, contact your system administrator." Unfortunately, there is nothing more than this message in portal. I have used visual administrator from go.bat also but the result is the same with error:
    Caused by: java.lang.ClassNotFoundException: com.sap.security.core.persistence.datasource.PersistenceException
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
    Any clues!
    Regards.

    Hi Eduardo/Jo,
    That's fine, I can see abap user in both visual administrator and portal's identity mgt area.
    However, when attempted to logon with an super admin role abap user, the portal displays, user is locked... okay, go to portal with j2ee_admin and unlock this user... again login and message user is still locked.... Go to visual administrator the same user appears as locked. click the pencil button and try to unlock, visual admin displays message "unable to unlock user. details are available in status bar".
    Following is the perhaps relevant part of the long error details.
    Caused by: com.sap.security.core.persistence.datasource.PersistenceException: Attribute "islocked" on namespace "com.sap.security.core.usermanagement" of principal "UACC.R3_DATASOURCE.MOHAMMAD" is not modifiable.
    So, all in all, portal cannot logon with super administrator becuase it appears locked in visual admin, cannot unlock this user in visual admin because of above error message.
    Any clues, please.
    Regards.

  • Cannot add groups to new users

    1, I add users in WebLogic 11g. However, in the Parent Groups page, I cannot move any groups to the right dropdown list.
    2, I am going to add new users for Oracle SOA Suite worklist. Does anyone know how to do it?

    you need to update and add user in jazn-data.xml file and restart bpel server then you will be able to look up the users using jazn tool
    To assign the credentials navigate to $Oracle_Home\integration\ orabpel\system\appserver\oc4j\j2ee and use the command
    java -jar jazn.jar -adduser jazn.com soauser1 admin123
    RealmLoginModule username: admin
    RealmLoginModule password:
    This will create a user 'soauser1' with password 'admin123'
    update the jazn-data.xml :
    <user>
    <name>soauser1</name>
    <credentials>!admin123</credentials>
    </user>
    This is one way also you can create users using EM console
    Regards,
    Deepa

  • Unable to create new user using Oracle Database vault

    Hi,
    can somebody help me to autorize user other then SYS user (e.g. system) to CREATE new and ALTER users when my database is secured by Oracle database vault with default installation settings;
    Thanks

    Reading the DV docs would be a great place to start.
    Consider, for a moment, that if the normal privileges provided to SYS using DV worked the same as they do in a regular database you wouldn't have a data vault you'd have a regular database.
    After you read the docs log on and try the following:
    SELECT username
    FROM dba_users
    WHERE username LIKE 'DV%';Aha!

  • New User with the task from the copied user

    Hi frnds,
       I created a new SAP user id by copying the existing. When i logged into the portal using the new user id, i was able to see the task from the original user id in the task list. But this should not happen. Is there any configuration to control it?
    Let me know if you have any solution for the same.
    Thanks,
    Suganya

    1. Its not happening now.

  • New User Question:  Transferring Project from PC to Mac

    Hello All:
    I'm hoping someone can give me a little advice. I just made the switch to Mac last week and I'm struggling a bit.
    I have a large (full length feature film) project that I had been working on using a PC (Pinnacle Studio). The editing was 90% complete. However, it became necessary at this point to switch over to the Mac.
    I rendered the project as an AVI file and was able to open it using Final Cut Express. However the guy at the Mac store told me that I would lose some quality doing it that way and that the best thing to do would be to re-capture the footage from the DV tapes directly into the Mac.
    Okay. So here's my first question: Is there really no other way to do this without losing video quality? (It would mean a major set-back in our schedule and many, many hours of re-editing what has already been done.)
    If I must re-capture the video, then I will do so - but I just want to make sure it's the right thing to do before I commit myself.
    I'd appreciate any advice.

    Thank you for responding Tom. I was pretty much resolved to doing that anyway. I just wanted to make sure there wasn't another way.
    I have another question - I captured my first DV tape to the Mac.
    During capture, the process stopped at every individual shot and went back frame by frame "locating timecode break". Once the tape was done - it automatically separated each shot into individual clips.
    This is fine. But the problem is that there are now several seconds missing from the beginning of each shot. Some of the shorter clips are only a couple frames long because the majority of video was not captured.
    How do I tell Final Cut to simply capture the entire tape as one long clip? I can separate the shots myself.
    I appreciate the help - and sorry if I'm asking really obvious questions.

  • HT4259 My old Airport Extreme cannot connect to the new Airport Extreme (Base) after I upgraded to the 7.7.1. firmware.

    The old extreme was working as part of the extended network when the New Extreme Base it had the 7.7. version, now amber just blinks away.
    I tried hooking up an Airport Express and have the same problem.
    Any pointers?

    Ensure that the ethernet is connected to the WAN port (with the dotted circle).
    You may have to reset and reconfigure your Airport Extreme.

  • Cannot connect N79 with new and old Nokia suites r...

    I have an N79 which I can successfully connect with Nokia Suite 3.3.x running on Windows XP and sync my data.
    However, I have failed to connect the same phone (and also a N86) with the Nokia suite running on Windows 7. The connection with Windows seems fine (and I can browse the contents of the phone from Explorer). However Nokia Suite 3.3.x does not detect the device, although looking at the Add Phone window it is clearly trying to do something when I physically connect the phone - sometimes a message "Wait while we configure the phone etc."
    I have tried removing all Nokia software, removing registry entries, reloading. But to no effect. I have tried repairing the various Mokia software elements through Control Panel.
    I tried an older version of the suite (OVI 3.0.0.286). Again without success, except that it does see the phone because it lists it on the Add Phone screen. However, when I select it I get a pop-up advising me that the phone is not in PC Suite mode - but it is!!!  This does not happen every time but only after I delete the phone's entry from Devices. If I do not do that, the suite does not list the phone. The same happens on Vista.
    The USB cable is from Nokia (CA 101). So same phone, same cable, same Nokia suite - works on XP but not on Win 7 or Vista.
    Any ideas would be most welcome.

    Hi, tinwhistle. Thanks for sharing with us your concern. Do you have the latest version of the Nokia Suite? Can you also make sure that you have an admin access on your Windows 7 computer, and your firewalls & antivirus programs are disabled. It would also help if your Windows 7 drivers are up-to-date. Keep us posted.

  • After a UPSA connection edit, all my user profiles are "missing from import"

    Hi there,
    I've got a problem with my User Profile Service Application. I edited my existing connection to add some new OU containers to the list, after the networks team had done some
    restructuring to reflect an organizational change. Then I ran a Full Synchronization. But now all of my user profiles show up under the "Missing from Import" list. I still have 943 profiles in SharePoint, and not surprisingly, people search isn't
    working. I suspect that I did something wrong in the process of selecting the Users OU containers in the AD tree (in Populate Containers), but I cannot see what, since I replicated the selections that had been made for an unchanged department, to
    the ones that had been reorganized.
    Any help appreciated.
    Tom
    SharePoint Systems Officer, Capital Regional District, BC, Canada

    Hi  Tom ,
    According to your description, my understanding is that all the user profiles are showing up under "Profiles missing from import" list after you edited the existing User Profile Synchronization
    Connection.
    For your issue, it can be caused by that your User Profile Synchronization Connection is unable to connect to  your AD. Please make sure  the account used to connect to Active Directory to import
    profiles has access to the Organizational Unit you are importing from. By default this account is the Default Content Access account. And the Default Content Access account  must be a domain user account and it must have read access to external or secure
    content sources that you want to crawl by using this account.
    Then you need to check if the “Profile Synchronization” job status is “succeed”.
    Also please check the “Sync filter” for the service, and make sure the account are not include in the Exclusion Filter for Users.
    For a workaround, you can just delete the existing connection , recreate it and perform a full synchronization.
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Eric Tao
    TechNet Community Support

  • Migration assistant created a new user when transferring files from a PC to mac

    I just bought a new macbook air and proceeded to transfer my itunes music files from my old PC to my new mac using the migration assistant.  I could not find my music files that I had transferred in itunes on my admin user account but later found them on another user acount that I had not created. I was wondering if there was a way to collapse the two user accounts into one or transfer my music from one account to the other? (I tried using an external hard drive but it would not add my music files to the itunes library). Any ideas??

    Cattus Thraex wrote:
    I agree with the idea of an enhancement request, MA should have some more options if used later, normaly users a curious to log into the fresh system, and transfer data and settings at a later date.
    Unfortunately, a "merge" option, where it would add things to an existing user account, isn't realistic.  That would work fairly well for such things as documents, where everything is in separate files (although settings and preferences would get a bit tricky).
    But not for things like iCal, AddressBook, or Mail, where there are complex structures.  Trying to merge those in any automated way would be very complex.   Even worse would be 3rd-party apps that Apple can't possibly know how to handle.
    One thing that might help would be rewording the "You can transfer information later using Migration Assistant" line at the bottom of the Setup Assistant window:
    A number of us have asked for that to be worded differently -- warning that it's much better to do it first, or not to install stuff you're going to need, or something.   All to no avail, of course.
    Tell Apple what you think here:  http://www.apple.com/feedback/macosx.html

  • Connecting ipod to new mac book os x from dell windows xp....

    Hey, I just bought a new mac book yesterday and finally made the conversion over to apple. I have roughly 6000 songs on my ipod and definetly do not want to lose them. If i plug in my ipod to my new mac book, will I lose all my songs or will they just upload into itunes? If i will lose all my songs, how can I get those 6000 songs onto my new computer without losing them?

    1). Connect your iPod to your new computer. If it is set to sync automatically you'll get a message that it is linked to a different library and asking if you want to link to this one and replace all your songs etc, press "Cancel". Pressing "Erase and Sync" will irretrievably remove all the songs from your iPod.
    2). When your iPod appears in the iTunes source list change the update setting to manual, that will let you continue to use your iPod without the risk of accidentally erasing it. Check the "manually manage music and videos" box in Summary then press the Apply button. Also when using most of the utilities listed below your iPod needs to be enabled for disc use, changing to manual update will do this by default: Managing content manually on iPod and iPhone
    3). Once you are connected and your iPod is safely in manual mode there are a few things you can do to restore your iTunes from the iPod. iTunes will only let you copy your purchases directly from an iPod to the computer, you'll find details in this article: Copying iTunes Store purchases from your iPod or iPhone to a computer
    For everything else (music from CDs, other downloads and including iTunes purchases) there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod. I use Senuti but have a look at the web pages and documentation for the others too. You can read reviews and comparisons of some of them here (you'll find that they have varying degrees of functionality and some will transfer movies, videos, photos and games as well):
    Wired News - Rescue Your Stranded Tunes
    Comparison of iPod managers
    A selection of iPod to iTunes utilities:
    Senuti Mac Only (iPod Touch & iPhone compatible)
    PodView Mac Only
    PodWorks Mac Only
    TuneAid Mac only (iPhone and iPod Touch compatible)
    YamiPod Mac & Windows
    iPod Music Liberator Mac & Windows (iPhone and iPod Touch compatible)
    iPodRip Mac & Windows (iPhone and iPod Touch compatible)
    iPod Music Liberator Mac & Windows (iPhone and iPod Touch compatible)
    iGadget Mac & Windows (iPhone and iPod Touch compatible)
    Floola Mac & Windows
    Music Rescue Mac & Windows (iPhone and iPod Touch compatible)
    iRepo Mac & Windows (iPhone and iPod Touch compatible)
    iPod Access Mac & Windows (iPhone and iPod Touch compatible)
    TouchCopy Mac & Windows (iPhone and iPod Touch compatible)
    There's also a manual method of copying songs from your iPod to a Mac or PC. The procedure is a bit involved and won't recover playlists but if you're interested it's available on page 2 at this link: Copying Content from your iPod to your Computer - The Definitive Guide
    4). Keep your iPod in manual mode until you have reloaded your iTunes and you are happy with your playlists etc then it will be safe to return it auto-sync.
    5). I would also advise that you get yourself an external hard drive and back your stuff up, relying on an iPod as your sole backup is not a good idea and external drives are comparatively inexpensive these days, you can get loads of storage for a reasonable outlay: Back up your iTunes library by copying to an external hard drive

Maybe you are looking for