BDB - rename of a database file

If I rename (system call) a db file after closing it - Can thiis coorupt the environment ? What is the difference between renaming a file(closed) using BDB interface and the os system call ?
Any help with theses questions will be appreciated.

user11188564 wrote:
a subsequent db_put or db_open was returning a error - error 2 i.e ENOENT .Did you try to open the same database? Was the put for a different database file?
Did you close all the DBcursor handles before closing the database?
Do you use CDS groups?
Bogdan

Similar Messages

  • How to stop BDB from Mapping Database Files?

    We have a problem where the physical memory on Windows (NT Kernel 6 and up, i.e. Windows 7, 2008R2, etc.) gets maxed out after some time when running our application.  On an 8GB machine, if you look at our process loading BDB, its only around 1GB. But, when looking at the memory using RAMMAP, you can see that the BDB database files (not the shared region files) are being mapped into memory and that is where most of the memory consumption is taking place.  I wouldn't care normally, as memory mapping can have performance and usability benefits. But the results are the system comes to a screeching halt.   This happens when we are inserting results in high order, e.g. 10s of millions of records in a short time frame.
    I would attach a picture to this post, but for some reason the insert image is greyed out.
    Environment open flags: DB_CREATE | DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_TXN | DB_INIT_MPOOL | DB_THREAD | DB_LOCKDOWN | DB_RECOVER
    Database open flags: DB_CREATE | DB_AUTO_COMMIT

    An update for the community
    Cause
    We opened a support request (SR) to work with Oracle on the matter. The conclusion we came to was that the main reason for the memory consumption was the Windows System Cache.  (For reference, see this http://support.microsoft.com/kb/976618) When opening files in buffered mode, the equivalent of calling CreateFile without specifying FILE_FLAG_NO_BUFFERING, all I/O to a file goes through the Windows System Cache.  The larger the database file, the more memory is used to back it.  This is not the same as memory mapped files, of which Berkeley will use for the region files (i.e. the environment.) Those also use memory, but because they are bounded in size, will not cause an issue (e.g. need a bigger environment, just add more memory.)  The obvious reason to use the cache is for performance optimizations, particularly in read-heavy workloads. 
    The drawback, however, is that when there is a significant amount of I/O in a short amount of time, that cache can get really full and can result in the physical memory being close to 100% used.  This has negative affects on the entire system. 
    Time is important, because Windows needs time to transition active pages to standby pages which decreases the amount of physical memory.   What we found is that when our DB was installed on FLASH disk, we could generate a lot more I/O and our tests could run in a fraction of the time, but the memory would get close to 100%. If we ran those same tests on slower disk, while the result was the same, i.e. inserted 10 million records into the data, the time takes a lot long and the memory utilization does not approach even close to 100%. Note that we also see the memory consumption happen when we utilize the hotbackup in the BDB library. The reason for this is obvious:  In a short amount of time we are reading the entire BDB database file which makes Windows utilize the system cache for it. Total amount of memory might be a factor as well. On a system with 16GB of memory, even with FLASH disk, we had a hard time reproducing the issue where the memory climbs.
    There is no Windows API that allows an application to control how much system cache is reserved or usable or maximum for an individual file.  Therefore, BDB does not have fine grained control of this behavior on an individual file basis.  BDB can only turn on or off buffering in total for a given file.
    Workaround
    In Berkeley, you can turn off buffered I/O in Windows by specifying the DB_DIRECT_DB flag to the environment.  This is the equivalent of calling CreateFile with specifying FILE_FLAG_NO_BUFFERING.  All I/O goes straight to the disk instead of memory and all I/O must be aligned to a multiple of the underlying disk sector size. (NTFS sector size is generally 512 or 4096 bytes and normal BDB page sizes are generally multiples of that so for most this shouldn't be a concern, but know that Berkeley will test that page size to ensure it is compatible and if not it will silently disable DB_DIRECT_DB.)  What we found in our testing is that using the DB_DIRECT_DB flag had too much of a negative affect on performance with anything but FLASH disk and therefore can not use it. We may consider it acceptable for FLASH environments where we generate significant I/O in short time periods.   We could not reproduce the memory affect when the database was hosted on a SAN disk running 15K SAS which is more typical and therefore are closing the SR.
    However, Windows does have an API that controls the total system wide amount of system cache space to use and we may experiment with this setting. Please see this http://support.microsoft.com/kb/976618 We are also going to experiment with using multiple database partitions so that Berkeley spreads the load to those other files possibly giving the system cache time to move active pages to standby.

  • Delete a physical bdb database file

    Lets say, I have a bdb database file x. Now, how to delete this file ? Ofcourse you can’t just delete it via command line else there will in inconsistency in bdb logs.
    I saw remove API and used it the following way but the file is not deleted yet: http://www.oracle.com/technology/documentation/berkeley-db/xml/java/com/sleepycat/db/Database.html#remove(java.lang.String,%20java.lang.String,%20com.sleepycat.db.DatabaseConfig)
    // Get the database handle to the database name “dbToDelete”
    Database dbHandle = GetDataBaseHandle(“DbToDelete”)
    // Delete this database
    dbHandle.rmove(“DbToDelete, DbToDelete, null);
    It doesn’t work – any ideas why? Is this the wrong API? Or this API doesn’t remove the database from your system but updates its log to “delete” it?
    Thanks
    Neha

    Well, maybe I was using the API in incorrect manner. Now, I’m using it like:
    // Delete this database
    dbHandle.rmove(Absolute_Path_To_DbFile_To_Delete , null , null );
    This does removes the file from the system. But, I’m just concerned that is that the right way? Shouldn’t somehow the bdb env path be specified in this API?
    Neha

  • SQL and database file

    Hello.(sorry for my english)
    I have a legacy system , ported to opencobol that uses Berkeley DB. I can successfully open the database files using java both in windows and linux. However i want to create a web front end for the application.
    Data is stored using strange cobol structures (most numbers are stored as text or 4 bits per digit) and other fancy stuff.. so custom parsers should be written. (dont rember BDB classes name for that)
    I have been reading the documentation of Berkeley DB 12 hours totaly today but couldnt find answers to some questions...
    Is it possible to attach the database to dbsql.exe (sqlite) server ?? I tried to do "attach "..pathtofile" as NULL ,but i get multiple databases specified and not supported and other stupid messages....
    I think that what i tried propably doesnt make sense as collumns arent specified and nothing is in order this thing to work ..It is a simple Key value database.
    So i am a little stucked here.
    The only solution i can think is to synchronize with a relational Database. But i dont have triggers or nothing that helps....
    Note that i want one way synchronization. The "other way" will have very limited tasks.
    It seems to me that checking every x minutes if something changed using a cursor is a demanding task. So i am wondering.. Is there a way to track changes???
    Thank you :)
    Edited by: 843912 on 12 Μαρ 2011 7:13 μμ

    Hello,
    I am not sure I completely understand your question. If you are asking about importing
    and exporting data from a Berkeley DB database into an Oracle DB Table in Berkeley DB
    releases prior to 5.*, then this can be done with the Oracle OCI interface. If I am
    misunderstanding the question, please let me know.
    Thanks,
    Sandra

  • How do I rename an XE database on a Windows 2003 Server?

    Ok. I'm attempting to rename a freshly installed XE database on a Windows 2003 Server. It looks like there is no getting around the fact that the database gets named "XE" during installation. Because there could potentially be multiple installations of XE in my organization, I thought it'd be a good idea to disambiguate the installations by renaming them to match their function. In this particular case, I'd like to rename the database to "CTXMGMT". It will be a data repository for our Citrix farm administration programs.
    Here is what I've performed thus far:
    1. Installed Oracle 10g XE on one of our Windows 2003 Server, Standard Edition machines.
    2. Verified that the installation was performed correctly by making sure the 'Database Home Page' loads correctly through Internet Explorer, and by performing a few Select statements on the database (i.e. select name from v$database;)
    * * I then began following instructions from this document (http://www.utexas.edu/its/unix/reference/oracledocs/v92/B10501_01/server.920/a96652/ch14.htm#1004735) to rename the database. Note: I'm only trying to change the name of the database, not the ID.
    3. Shutdown the database
    4. Opened the database in MOUNT mode
    5. Ran the NID utility. Here's the actual input/output to/from the NID utility:
    C:\oraclexe\app\oracle\product\10.2.0\server\BIN>nid target=sys/manager@xe DBNAME=CTXMGMT SETNAME=YES
    DBNEWID: Release 10.2.0.1.0 - Production on Mon Jul 10 15:55:10 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to database XE (DBID=2476560070)
    Connected to server version 10.2.0
    Control Files in database:
    C:\ORACLEXE\ORADATA\XE\CONTROL.DBF
    Change database name of database XE to CTXMGMT? (Y/[N]) => Y
    Proceeding with operation
    Changing database name from XE to CTXMGMT
    Control File C:\ORACLEXE\ORADATA\XE\CONTROL.DBF - modified
    Datafile C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF - wrote new name
    Datafile C:\ORACLEXE\ORADATA\XE\UNDO.DBF - wrote new name
    Datafile C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF - wrote new name
    Datafile C:\ORACLEXE\ORADATA\XE\USERS.DBF - wrote new name
    Datafile C:\ORACLEXE\ORADATA\XE\TEMP.DBF - wrote new name
    Control File C:\ORACLEXE\ORADATA\XE\CONTROL.DBF - wrote new name
    Instance shut down
    Database name changed to CTXMGMT.
    Modify parameter file and generate a new password file before restarting.
    Succesfully changed database name.
    DBNEWID - Completed succesfully.
    6. After running the NID utility from a separate DOS Window, I attempt to shutdown the newly renamed database from the first DOS Window I used in steps 3 & 4 from above (i.e. to shutdown the database and then start it in MOUNT mode) but I receive this error:
    ORA-03113: end-of-file on communication channel
    This is somewhat expected since the SQL*Plus connection in this window probably had "the bottom pulled out from under it" when the database was renamed.
    However at this point I'm unsure about what state the database is in. Is it down? Is it up? Logic would sort of dictate that the database was left in the MOUNT state, which is the state it was in when the database name was changed. However, the only way I'm able to get back in to the database is by doing the following
    a. Opened a new DOS window
    b. entered "set ORACLE_HOME=C:\oraclexe\app\oracle\product\10.2.0\server"
    c. entered "set ORACLE_SID=XE"
    d. entered " sqlplus "/ as sysdba" "
    e. at SQL> prompt, entered "startup"... which produces:
    SQL> startup;
    ORACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1287016 bytes
    Variable Size 92277912 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 2904064 bytes
    ORA-01103: database name 'CTXMGMT' in control file is not 'XE'
    SQL>
    From here I don't know what to do. According to the ORA-01103 error message, it looks like I need to change the database name in the control file to "CTXMGMT", but I'm not sure how I should go about that. The control file is a binary file, so I can't just open it up with Notepad and type in a new database name.
    I suspect that even once that is done that the listener.ora (and maybe the tnsnames.ora file?) will have to be edited to include the new "CTXMGMT" name, but I'm not sure how exactly those files should look to incorporate the new database name.
    Also, would the names of services have to be changed in Windows as well? (i.e. Would the Windows service named "OracleServiceXE" have to be renamed to "OracleServiceCTXMGMT" ?)
    In short, I really just need to know how to rename an XE database on Windows appropriately. The steps described above represent as far as I've gotten. If I'm going about it incorrectly could someone shed some light on the correct steps to follow? The more detailed the better. Thanks.
    - Gary

    Okay, I've....
    1) Reinstalled XE, to start from scratch
    2) Went in to SQL*Plus, did a "create pfile from spfile;"
    3) Shutdown the database
    4) Started it up in MOUNT mode
    5) Ran NID, to change the database name from 'XE' to 'CTXMGMT'
    6) Shutdown the database again
    7) Edited the pfile to change the database name (i.e. "db_name='CTXMGMT'")
    8) Started up the database
    And that worked! So that's good... but now my question is:
    How do I change the SID for the database? Currently, the instance name for the database is still 'XE'....
    SQL> select instance_name
    2 from v$instance;
    INSTANCE_NAME
    xe
    I'd like it so a connection could be made to the database with the tnsnames.ora file looking like this:
    CTXMGMT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(Host = rodin)(Port = 1521))
    (CONNECT_DATA = (SID = CTXMGMT))
    Could someone explain how to get the database to this state? Thanks.
    - Gary

  • What  are the steps for merging of database files ?

    hi
    i have 23 datafiles in a tablespace .i want to merge these 23 datafiles into 4 to 5 datafiles.What are the steps for merging of database files
    Edited by: mithun on Oct 22, 2011 11:29 PM

    >
    i have 23 datafiles in a tablespace .i want to merge these 23 datafiles into no of
    small no of datafiles.What are the steps for merging of database filesYou didn't mention your Oracle version.
    See here for creating tablespaces http://www.adp-gmbh.ch/ora/sql/create_tablespace.html.
    You can specify as many (or as few) datafiles as you like.
    Then create tables in your new tablespace x_old_table_name(s) - you can Google this.
    Then select the data from old_table_name(s) into x_old_table_name(s).
    Drop old_table_name(s)
    Rename x_old_table_name(s) old_table_name(s).
    There may be a better way.
    Paul...

  • Moving Database files in 10.2.0.1

    Does anyone know the easiest way to move an entire set of database files (control,datafiles,redo,archive,bdump,cdump,etc) from say the E: drive on a windows sever to an S: drive on a SAN that the instance can connect to?? The directory strcuture would remain the same just the volume name and physical disk would change.
    I am assuming I could perform a cold backup of all the files over to the S: drive directory and then somehow perform a series of ALTER SYSTEM/DATABASE commands to rename and/or point to the new location correct? Can I do this with the TEMP, SYSAUX and SYSTEM datafiles? Probably involves changing init.ora parameters too.

    The name of the datafile includes the Volume name so you cannot change the name dynamiccaly of the system tablespace as it cannot be taken offline...
    look at the below link which will help you
    Always backup the DB before and after the execercise....
    Make sure to make changes in the init.ora to point the new direcory for archive log,controlfile,dump directories
    http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96521/dfiles.htm#7622
    Message was edited by:
    Maran Viswarayar

  • Database File Size Management

    Hello,
    I have an application that stores large records (capped at 1M each in size, but on average around 0.5 M), and can at any given time have hundreds of thousands of such records. We're using a BTree structure, and BDB has thus far acquitted itself rather well.
    One serious issue we are facing, however, is that the size of the database keeps growing. My expectation was that the database file would grow only on an as-needed basis, but would not grow if records have been deleted. Our application is transactional and replicated. We do have the txnNoSync flag set to true, and checkpoint every 60 seconds (this number is tunable). We have setReverseSplitOff set to true. Could this be the problem? Our page size is set to the maximum possible size, i.e., 65536 bytes.
    Thanks in advance,
    Prashanth

    Hi Prashanth,
    No, it has nothing to do with turning reverse splits off, the page size or anything else.
    It's just that Btree (and Hash) databases are grow-only. Although you free up space by deleting records within a Btree database that space will not be returned to the filesystem, but it's reused where possible. Here is more information on disk space considerations:
    http://www.oracle.com/technology/documentation/berkeley-db/db/ref/am_misc/diskspace.html
    Also, to add to the information there, you could call DB->compact():
    http://www.oracle.com/technology/documentation/berkeley-db/db/api_c/db_compact.html
    or use the db_dump and db_load utilities to do the compaction offline (that is, stopping all writes on the database). Note that if you use your own Btree comparison function you must modify the source code for the utilities so that they'll be aware of the order imposed.
    Let me know if you need more information on this.
    Regards,
    Andrei

  • Database file changed ora-01251   how to solve?

    hai all,
    database file changed ora-01251 how to solve?
    suddenly changed when i try to connect Oracle Management server(OMS)
    thanks
    rcs
    =======
    os:winxp
    db:Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
    SQL> Recover database
    ORA-00283: recovery session canceled due to errors
    ORA-01110: data file 9: 'F:\ORACLE\ORADATA\BIMPEX\BIMPEX.ORA'
    ORA-01122: database file 9 failed verification check
    ORA-01110: data file 9: 'F:\ORACLE\ORADATA\BIMPEX\BIMPEX.ORA'
    ORA-01251: Unknown File Header Version read for file number 9
    WRONG FILE TYPE
    F:\ORACLE\ORADATA\BIMPEX\BIMPEX.ORA
    ========

    Hi..
    Would like to know if any changes were done before this error popped up..
    From metalink :--
    >
    Error:     ORA-1251
    Text:     Unknown File Header Version read for file number %s
    Cause:     Read of the file header returned a record but its version cannot be
         identified. Either the header has been corrupted, or the file is not a
         valid database file.
    Action:     Have the operating system make the correct file available to the
         database, or recover the file.
    >
    If the file is corrupted, then take the datafile offline and open the database.If it was renamed, then you can check metalink Doc ID:      230449.1
    if the database is in archive log mode, you can refer to metalink Doc ID: 333620.1
    HTH
    Anand

  • Move database files from one ASM diskgroup to another

    We are working on 11.2.0.3 RAC environment. We have an activity in which we have to move ASM database files from one diskgroup to another. We have the sufficient downtime for the activity. On checking MOS it says copying datafiles from "rman copy" command is the preferred method.But with 11g R2 we can use cp command in ASMCMD.
    So which is the preferred method to copy asm database files and why:
    RMAN Copy command or ASMCMD cp command

    Hi,
    I normally prefer to go with RMAN than the ASMCMD cp command. Suppose the datafiles are OMF and you use RMAN to copy:
    1. offline the datafile
    2. RMAN>copy datafile <offline-datafile-on-old-DG> to +NEW-DG;
    3. At database level, rename the old datafile to the new name reported from the above command
    4. Switch the new datafile to copy
    5. Recover the new datafileHere, RMAN assigns automatically a unique name for the new datafile (OMF) and you only have to specify the new diskgroup name while using the COPY command which makes things easier. But say if you are using ASMCMD, then you cannot just specify the new diskgroup name for the CP command, which means that a unique name cannot be obtained automatically.
    The below command does not work out.
    asmcmd>cp OLD_DG/datafile/abc.123 NEW_DGYou need to specify the destination name as well something like below:
    asmcmd>cp OLD_DG/datafile/abc.123 NEW_DG/abc.dbfHere you are getting a normal file and not OMF, though ASM internally creates a link for the file "+NEW_DG/abc.dbf" pointing to an OMF. ASMCMD makes you a bit more confusive.
    Refer this http://surachartopun.com/2009/10/moving-datafile-in-asm-by-asmcmdcp.html

  • Renaming the Oracle10gXE database name

    Hi,
    Oralce10gXe
    Linux Os
    How to rename the database name from 'XE' (default) to for eg. 'TEST' ?
    what are the exact steps for it ?
    Regards

    Hi,
    it is possible to change the SID of XE like any other Oracle edition. The easiest way to do so is to use the nid (newid) utility in $ORACLE_HOME/bin (you shutdown the database cleanly, open in mount state and then execute nid target=sys/password@xe dbname=newSID, then change the dbname in init/spfile, rename the init/spfile to contain the new sid, generate new password file using passwd, and open the database with resetlogs).
    However, I would not recommend renaming the XE database. I did that, and it has been a pain, since our developers changed the hardware several times, wished for new testing and development installations, and I had to play again and again with the changing of default oracle scripts. As with XE, you can run only one XE edition instance on the server (that does not change by renaming it). With that in mind, there are multiple oracle scripts with ORACLE_SID=XE hardcoded in them. Namely the /etc/init.d/oracle-xe, then all the scripts in $ORACLE_HOME/config/scripts related to starting/stopping and backing up the db, not forgetting the oracle_env.sh...
    Having the experience, I would simply recommend leaving the ORACLE_SID=XE, and changing the service_name, or the TNSNAMES.ora alias. That should be sufficient for the developers to "see a pretty name".
    Kind regards,
    Martin

  • Database files to /u02 & flashbackup to /u03,

    OS: AIX 5.2
    DB: 10.2.0.1.0
    Hello All,
    I succesfully installed Oracle Database on AIX.
    We wanted to use Oarcle Database filesystem as follows:
    /u01 for Oracle
    /u02 for datafiles
    /u03 for backup (flashbackup)
    But we missed Advance configuration method and install Compltete Oracle database on dir /u01.
    Now I would like to configure system to move all database files to /u02 & flashbackup to /u03.
    Can I use RMAN to configure this, if yes how.
    any feed back will be appreciated.
    DN

    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    $ pwd
    /u01/app/oracle/oradata/abc
    $ cp * /u02/oradata/abc
    $ cd /u02/oradata/abc
    $ ls
    control01.ctl example01.dbf redo03.log temp01.dbf users01.dbf
    control02.ctl redo01.log sysaux01.dbf test
    control03.ctl redo02.log system01.dbf undotbs01.dbf
    $ sqlplus
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jul 6 13:31:17 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter user-name: sys as sysdba
    Enter password:
    Connected to an idle instance.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 1174405120 bytes
    Fixed Size 2020392 bytes
    Variable Size 301992920 bytes
    Database Buffers 855638016 bytes
    Redo Buffers 14753792 bytes
    Database mounted.
    SQL>
    No I need to do as below: (Please confirm)
    SQL> alter database rename file '/u01/control01.ctl ' to '/u02/control01.ctl';
    SQl> alter database rename file '/u01/redo02.log' to '/u02/redolog';
    SQl>alter database rename file '/u01/temp01.dbf ' to /u02/temp01.dbf';
    DN

  • ORA-01122: database file 30 failed verification check

    SQL*Plus: Release 10.1.0.4.2 - Production on Wed Feb 13 20:33:13 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    when starting the DB for 10gAS get following error, db is started but cannot sign in
    SQL> SQL> Connected.
    SQL> ALTER DATABASE open
    ERROR at line 1:
    ORA-01122: database file 30 failed verification check
    ORA-01110: data file 30: 'D:\ORACLE\ORADATA\PRT\APPS003_A.DBF'
    ORA-01203: wrong incarnation of this file - wrong creation SCN
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.4.2 - Production
    With the Partitioning, OLAP and Data Mining options

    You have a mismatch in the control file and data file scn numbers. What was done before the database was getting started? I once saw this error when some one moved one file from another munt point to another and there was no rename give to the control file and the control file got no idea which is this new file and where it had come from?
    Try finding the control file which is of the same backup as of this datafile.
    Aman....

  • Database file + high cpu usage

    this has only started happening since i formatted and reinstalled windows. i have tried using both itunes 6.0.2.23 and 6.0.4.2 and both have the same problem.
    my music library contains 5088 songs, i have tried deleting heaps down to around 3400 and problem is still there (ie i have eliminated number of songs as a factor cause before formatting i had more than 3400 but less than 5088)
    when i play a song in itunes after about 5 seconds my cpu usage will jump to 100% this is on the "system" process, itunes itself uses around 2-5%. i was watching the itunes music folder though, and what it is doing is creating a new temp file (of 7.27mb) then renaming it to replace the current "itunes music library.xml" file. as soon as the xml file is replaced (takes about 10 seconds) cpu usage returns to normal.
    this exact same thing happens when i quit itunes, although it takes roughly 20 seconds.
    i have tried deleting all files in the itunes music folder apart from the base database file, that did nothing.
    i tried removing the entire folder and letting it create a new blank library, then added just 1 album, and it worked perfectly. i also noticed that on my original library most but not all AAC encoded files did not cause the cpu spike, all mp3s did.
    i tried creating an entire blank library and adding all my music back in, it still did high cpu usage so i would assume my current database is not corrupted.
    does anyone know a solution to this? how to stop it recreating the xml file with every song played. the only thing important to me is saving my playcounts, so any solution which does not require losing them would be appreciated.
    also yes i have tried completely uninstalling itunes, for both of the versions mentioned above, also tried updating over the top of the current installation, problem occurs everytime.
    i am running service pack 2, all current windows updates installed, no spyware, no viruses.
    thanks.
      Windows XP Pro   Athlon 64 3000+, 1GB DDR Ram

    It may be iTunes, but it probably is not. iTunes is just affected by a conflict with another program (possibly).
    Do you have a spy sweeper/virus scanner/etc. that periodically scans your PC memory? If so, then that is what may be interacting with iTunes.
    You should list the iTunes Folders as part of the exclusions within your Virus Scanners, and other Security software.
    BTW: I have a Library with over 13,000 song references. I do not see the same CPU spikes when playing music. It's not the size of the database - not at your current level.

  • Cloning and Renaming an Oracle Database

    Hi All,
    Can someone please tell me, in brief, the steps to;
    1. Create a clone of a database?
    2. Rename an existing Database?
    Any help will be greatly appreciated.
    Thanks in advance.

    Hello,
    1. Create a clone of a database?
    You can use RMAN Duplicate and if you have access to metalink you can find tons of documents and notes for cloning
    2. Rename an existing Database?
    Here is stepwise procedure to rename existing database.
    1. Take full backup (RMAN, export or datapump)
    2. Stepwise instructions (Windows but it should very similar for unix/linux as well).
    Edit tnsnames.ora entry
    orcl =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = orionnet-24d24b)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl)
    Add new one
    ODS =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = orionnet-24d24b)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = ODS)
    C:\ set ORACLE_SID=orcl
    C:\>sqlplus "/as sysdba"
    SQL*Plus: Release 10.2.0.1.0 - Production on Sun Dec 21 20:35:17 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options
    SQL> select instance_name, status from v$instance;
    INSTANCE_NAME    STATUS
    orcl             OPEN
    SQL> create pfile='C:\oracle\product\10.2.0\ods\admin\pfile\initorcl.ora' from spfile;
    File Created
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount pfile='C:\oracle\product\10.2.0\ods\admin\pfile\initorcl.ora';
    ORACLE instance started.
    Total System Global Area  209715200 bytes
    Fixed Size                  1248116 bytes
    Variable Size              67110028 bytes
    Database Buffers          134217728 bytes
    Redo Buffers                7139328 bytes
    Database mounted.
    Open a new cmd session from Start-> Run -> cmd
    C:>nid TARGET=sys/whateveryourpassword@orcl DBNAME=ODS SETNAME=Y
    where orcl=old database name, ODS=new database name
    DBNEWID: Release 10.2.0.1.0 - Production on Sun Dec 21 20:43:33 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to database ORCL (DBID=2232941135)
    Connected to server version 10.2.0
    Control Files in database:
        C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL01.CTL
        C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL02.CTL
        C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL03.CTL
    Change database name of database ORCL to ODS? (Y/[N]) => Y
    Proceeding with operation
    Changing database name from ORCL to ODS
        Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL01.CTL - modified
        Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL02.CTL - modified
        Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL03.CTL - modified
        Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\SYSTEM01.DBF - wrote new name
        Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\UNDOTBS01.DBF - wrote new name
        Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\SYSAUX01.DBF - wrote new name
        Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\USERS01.DBF - wrote new name
        Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\TEST.DBF - wrote new name
        Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\TEMP01.DBF - wrote new name
        Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL01.CTL - wrote new name
        Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL02.CTL - wrote new name
        Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL03.CTL - wrote new name
        Instance shut down
    Database name changed to ODS.
    Modify parameter file and generate a new password file before restarting.
    Succesfully changed database name.
    DBNEWID - Completed succesfully.
    C:\>oradim -DELETE -SID orcl
    Instance deleted.
    Edit initorcl.ora file and replace "ORCL" with "ODS"
    C:>oradim -new -sid ODS -intpwd mypassword -startmode AUTO -pfile 'C:\oracle\product\10.2.0\admin\ODS\initorcl.ora'
    Instance created.
    C:\>set ORACLE_SID=ODS
    C:\>sqlplus "/as sysdba"
    SQL*Plus: Release 10.2.0.1.0 - Production on Sun Dec 21 20:50:30 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup mount pfile='C:\oracle\product\10.2.0\admin\ODS\pfile\initorcl.ora';
    ORACLE instance started.
    Total System Global Area  209715200 bytes
    Fixed Size                  1248116 bytes
    Variable Size              67110028 bytes
    Database Buffers          134217728 bytes
    Redo Buffers                7139328 bytes
    ORA-01103: database name 'ODS' in control file is not 'ORCL'
    Note: If you don't modify initorcl.ora file and replace it with ODS, you will get ORA-01103 error.
    SQL> shutdown immediate;
    ORA-01507: database not mounted
    Edit initorcl.ora file and replace "ORCL" with "ODS"
    ORACLE instance shut down.
    SQL> startup mount pfile='C:\oracle\product\10.2.0\admin\ODS\pfile\initods.ora';
    ORACLE instance started.
    Total System Global Area  209715200 bytes
    Fixed Size                  1248116 bytes
    Variable Size              67110028 bytes
    Database Buffers          134217728 bytes
    Redo Buffers                7139328 bytes
    Database mounted.
    SQL>
    SQL> alter database open;
    Database altered.
    NOte: My verification if TESTUSER exists or not after database name change
    SQL> select username from dba_users;
    USERNAME
    SYS
    SYSTEM
    TESTUSER
    OUTLN
    MDSYS
    ORDSYS
    ANONYMOUS
    EXFSYS
    DBSNMP
    WMSYS
    XDB
    USERNAME
    ORDPLUGINS
    SI_INFORMTN_SCHEMA
    DIP
    TSMSYS
    15 rows selected.
    NOte: ANother test for object existence
    SQL> select table_name from dba_tables where owner='TESTUSER';
    TABLE_NAME
    TESTME
    MY_OBJECTS
    Note: Final test
    SQL> select count(*) from testuser.my_objects;
      COUNT(*)
         38174Regards

Maybe you are looking for

  • Macbook pro trackpad problems

    I have been having trackpad problems on my macbook pro (bought in 2010) for the past couple of days. Not only does it move erratically by itself, but the left click does not respond as it should. Whenever I use the left click, it works as a right cli

  • Incorrect display of web pages

    This is a presistent problem that comes and goes. I think it could be related to the updates that are pushed out. On my linux boxes (Xubuntu 12.04 with all updates and patches), Firefox suddenly starts displaying all pages as just text. I have restar

  • Quicktime has taken over Image Icons

    For some reason Quicktime has taken control of my image file icons and I can't seem to make the change stick when I go to Quicktime's preferences, use the default settings, confirm that the files I don't want QT to open are not checked and press the

  • Error message after syncing

    I get the following windows error message after my 80G iPod syncs: There is no disk in the drive. Please insert a disk into drive M:. I don't have the box checked to enable disk use. HP   Windows XP  

  • Total noob Q: Can I run virtual machines on a MacBook Pro ?

    My apologies for entering totally green, folks. My last Apple was the first Mac I bought in university, sold quickly, and preceded by a bunch of ]['s. Sadly, I have been living under a rock for 20 years, and just this year spent $200k at IBM for serv