Move database from server running Oracle 11G to server running Oracle 12c

I'm trying to find out the easiest way to migrate a database from a server running Oracle 11G to a server running Oracle 12c. I have tried using RMAN's duplicate database command but have run into far too many issues when trying to setup both servers before running the duplicate command.  If someone could provide some clear guidance on configuring both servers for the RMAN Duplicate command then that would be great.  The other thing I have tried is performing a cold backup of all the files for the database (control files, data files, etc.).  Copying them to the new server and then recreating the control file to include the correct location and names for the datafiles and redologs.  After recreating the control file the database will not start up.  I'm suspecting this is due to the version differences. If you can provide me clear (ie. migration for dummies) instruction for getting either of these methods to work it would be greatly appreciated.  I'm also open to any other method you can think of to achieve what I'm trying to accomplish. Thanks, Paul Noyes

Pl do not post duplicates - Move database from server running Oracle 11G to server running Oracle 12c

Similar Messages

  • Porting from Oracle 10g AS to Oracle 11g Weblogic server

    Hi,
    I am trying to port J2EE applicatin from Oracle 10g AS to Oracle 11g Weblogic Server. I have jsp files which contains sql code embedded to fetch data from the DB. The components used in this application are Java, JSP, Servlets and Stateless session beans.
    I have a commonjar which is used to create DB Connection manager and other common stuff which is present inside web-inf/lib. My application is packaged as an ear and which contains the war and different ejb-project.jar files. When the Stateless bean is trying to call the ConnectionManager class, which is present inside the commonjar inside web-inf/lib, I get InvocationTargetException. When I debugged in Eclipse, I see that that inside ejb the reference ConnectionManager, the variable cannot be resolved. So I guess at runtime, ejb is not able to locate ConnectionManager Class.
    I tried to copy this jar to APP-INF/lib and the same jar is present inside web-inf/lib as well. In that case what happens is the jsp fails with the exception ConnectionManager cannot be resolved.
    How can I make the ejb work by keeping the commonjar inside web-inf/lib alone.
    Any help or suggestions?
    Thanks
    Raj

    The classloader hierarchy in WLS looks like this (arrows denote inheritance direction):
    Java bootstrap classloader <- Java CLASSPATH classloader <- WLS $DOMAIN_HOME/lib classloader <- Application (e.g., EAR) classloader <- web app classloader <- single JSP classloader
    The Connection Manager is loaded by the web app classloader while the EJBs are loaded by the application classloader so the EJBs have no visibility to the classes loaded by the child (web app) classloader.
    The simplest fix might be to move the Connection Manager jar file to the EAR file's APP-INF/lib directory.
    One word of caution though, you need to be using WebLogic Server's Data Sources and JDBC connection pooling to make sure that you correct transactional behavior if the application is doing any sort of JTA transaction (regardless of whether the JTA transactions are using XA or not...).
    Hope this helps,
    Robert

  • Move Database from 10.2.0.2 to 11.2.0.1 on NEW SERVER

    Hello everyone and thank you in advance for any help ..
    I need to Move Database from 10.2.0.2 to 11.2.0.1 on NEW SERVER
    I am beginer in DBA Administration and I will try to explain my situation in my company.
    Well I have:
    - Two physical servers with Win 2008 R2 x64
    - Oracle Database 10.2.0.2 x86
    - The size of the database up to 10 GB
    - Replication is working on a script level with archivelog think i something like Data Guard or it is.. because I did not install this from begining.. I get this when I get job..
    - SSID VIZRTDB a schema PILOT
    In my company I deal more with system and network administration, and there I began now to work around this part of the DBA I can say that I am already comfortable with oracle database.. but here I stumbled on a problem, so I do not know where to start and who to ask..
    In a virtual environment I install the same as I have on physical server, only now I install Oracle 11.2.0.1 and Win 2008 R2 x64, and I made all the replication and which is identical to the production servers ..
    The idea is to export the database to 10.2.0.2 from production server and then imports it into 11.2.0.1 and I have already tried but I have a lot of mistakes at the end of the importa .. I tried the classic Imort / Export, and I will try to Impdb / Expdb (Data Pump) .. a lot of mistake like some stuff already exist etc..
    I think the question is what is best to do with the data pump or with some other tool to import database on new server 11.2.0.1? I mean what do you think is the best procedurally to do ..
    Since the moment I have two physical servers and is really complicated to do any upgrades, etc..
    Can I install on this two physical servers VMware Workstation software, and then on separate server I will have two virtual oracle databases so I can always move image and try upgrade, patch etc...
    Does this create a problem around the base of the network that will be somewhat slower, response, etc? .. Because as you see I work in television and I dont really no day that I can say that they can shut down the base for more than 4 hours ..
    Thanks in advance.
    Greetings.

    Triplicate post - I need to Move Database from 10.2.0.2 to 11.2.0.1 on NEW SERVER

  • APEX Oracle 11g HTTP Server - Cannot get SSL working

    I have installed APEX on Oracle 11g with the Oracle HTTP Server on MS Windows server.
    Data base up and running, APEX up an running.
    All works as expected on port 7777
    When I try 4443 I get error message re self signed certificate by Oracle, but if I click through error message I get an https connection.
    I want to replace default cert with a locally signed cert, and get SSL working on 4443, then switch to port 443.
    I have used the Oracle Wallet manager, generated a CSR, had this signed by my corproate CA, and installed the corporate CA cert and the newly signed server cert into the wallet (with Auto Login Set) and saved it in:
    D:\orahttp\Oracle_WT1\instances\apex\config\OHS\ohs1\keystores\infosec2wallet
    This creates two files: ewallet.p12 and cwallet.sso
    I then manually add the group/users "SYSTEM" and "Administrators" to these two files to match the security tab on the default wallet.
    I T then go to the ssl.conf file located at:
    D:\orahttp\Oracle_WT\instances\apex\config\OHS\ohs1\ssl.conf
    and changed the entry:
    #SSLWallet "${ORACLE_INSTANCE}/config/${COMPONENT_TYPE}/${COMPONENT_NAME}/keystores/default"
    SSLWallet "${ORACLE_INSTANCE}/config/${COMPONENT_TYPE}/${COMPONENT_NAME}/keystores/infosec2wallet"
    I then stop and start the Oracle HTTP Server - ohs1 from the start menu.
    Then I try to connect from my desk top machine using the following URL:
    https://us-pghinfosec2.ariba.com:4443/pls/apex/f?p=101:1:
    I get the clasic MS IE Message:
    ==========
    Internet Explorer cannot display the webpage
    Most likely causes:
    You are not connected to the Internet.
    The website is encountering problems.
    There might be a typing error in the address.
    What you can try:
    Diagnose Connection Problems
    More information
    This problem can be caused by a variety of issues, including:
    Internet connectivity has been lost.
    The website is temporarily unavailable.
    The Domain Name Server (DNS) is not reachable.
    The Domain Name Server (DNS) does not have a listing for the website's domain.
    If this is an HTTPS (secure) address, click Tools, click Internet Options, click Advanced, and check to be sure the SSL and TLS protocols are enabled under the security section.
    For offline users
    You can still view subscribed feeds and some recently viewed webpages.
    To view subscribed feeds
    Click the Favorites Center button , click Feeds, and then click the feed you want to view.
    To view recently visited webpages (might not work on all pages)
    Click Tools , and then click Work Offline.
    Click the Favorites Center button , click History, and then click the page you want to view.
    ==========
    I am at a loss as to what to do. It acts like Oracle HTTP can not open my wallet.
    I suspect it needs the password to the wallet but I cannot find any place to specify the password, and Auto Login should have addressed that issue.
    Any insights welcome.
    Thanks - Elton Hay

    Hello Lakshmi,
    >
    I got your point but in our case HTTP Server and Oracle Database (APEX) running on different machines.
    Oracle HTTP Server running on a Windows 2003 server and Oracle Database running on Sun Solaris machine.
    So do i need to change Oracle 10g HTTP Server? do i need to install Oracle 11g HTTP SErver?
    Please let me know if my question is not clear.
    >
    <ul><li>
    I got your point but in our case HTTP Server and Oracle Database (APEX) running on different machines.Did I missed something?
    You should have mentioned this additional information in the original question itself.
    </li>
    <li>Oracle HTTP Server running on a Windows 2003 server and Oracle Database running on Sun Solaris machine.As long as [url http://docs.oracle.com/cd/E37097_01/doc/install.42/e35123/otn_install.htm#BHAFJJDA]dads.conf is configured correctly there should not be a problem with this.
    From Original question:
    We are having Oracle APEX 3.1 version on Oracle 10g Database and Oracle 10g HTTP Server as web server in our organization.How did this setup of APEX worked?(i.e. on different machines)
    If you still have doubt about this you can do the setup and find out before upgrading.
    </li>
    <li>So do i need to change Oracle 10g HTTP Server? do i need to install Oracle 11g HTTP SErver?This question is answered in the above post. As long as you fulfill the [url http://docs.oracle.com/cd/E37097_01/doc/install.42/e35123/pre_require.htm#CFHIIJBE]HTTP Server Requirements for APEX 4.2 (Also we are discussing this long about only Oracle 10g HTTP Server but which version?)
    </li></ul>
    Hope now I am more clear!
    Regards,
    Kiran

  • Move database from EMC to NETAPP

    Hi,
    I have couple of databases on server which is now connected to EMC storage. I need to move database from EMC to NETAPP. Can anyone give me steps to accomplish the requirement.
    I am thinking to do following steps:
    1). Shutdown the database gracefully.
    2). Move all the datafiles, controlfiles and redologfiles to the new NETAPP storage.
    3). Startup the database.
    are these steps correct?
    Because, the server cannot be attached to two storage devices simultaneously. I need to store these files externally right?
    Thanks

    10.1.0.5 ? That was courageous running ASM and then, in a few years, migrating storage !
    BTW, you still haven't confirmed if your NetApp storage requires HBAs or Gigabit NICs ! -- big difference to your "we can't have two HBAs" position.
    Also, I strongly advice you to check the NetApp documentation on Best Practices for Oracle. You definitely need to know how to mount the NetApp volumes for Oracle databases !
    As for your question about the RMAN command, it is covered in the RMAN documentation :
    "Creating a Duplicate Database on the Local Host" at
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#i1006859
    (at least in the 10.2 doc set -- you'd have to check your 10.1 doc set and I would advice that you raise an SR with Oracle support asking for confirmation that the same steps apply in 10.1)
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • Oracle 11g b2b server JMS Internal Delivery Channel Configuration

    Hi,
    I am using Oracle 11g b2b server configured with ebMS protocol. I have created a JMS internal delivery channel at host trading partner. Now the Inbound message (message from remote trading partner) will be delivered to back-end application through the jms internal delivery channel. Now I wanted to send this message to the another weblogic server domain which is hosted on another box. So where do I give the other weblogic domain details such that the message will be delivered from the host trading partner's b2b server to remote weblogic domain queue?
    Regards,
    Baskaran

    Hi Baskaran,
    As already mentioned by Nitesh, You can Create a Internal JMS Delivery channel and configure the same in your agreement to route the messages to the remote weblogic(domain) JMS queue.
    Remote weblogic domain's ip address and port details can be configured as part of JMS Internal Delivery channel, "Destination Provider" like below,
    eg.
    java.naming.provider.url=t3://<host>:<port>;java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory;java.naming.security.principal=<username>;java.naming.security.credentials=<password>
    In this case the messages directly delivery to the remote JMS queue.
    Regards
    Nandagopal

  • What is the URL for administration of a standalone Oracle 11g HTTP server (OHS + Web Cache)

    Hi,
    I have a running Oracle 11g HTTP server (OHS + Web Cache). A stand-alone installation.
    What is the URL to access the administration page of the OHS server?
    Thanks by advance.

    Try this:
    http://hostname:7777/demos.htm

  • How to 'move' databases from one server to another

    Hi there
    Here is a brief description of my assignment.
    We have two Redhat Linux 4 64-bit server where two Oracle 10.2.0.4 64-bit database are running (one on each server).
    <li>DB on server1 is using Filesystem for storage.
    <li>DB on 2nd server is using ASM.
    <li>Size of both is between 75-80GB.
    <li>I have to move both the databases to new servers (same platform) with minimum downtime.
    <li>There is no upgrade required during this move/migration. Both DBs have to be brought over as-is.
    <li>The new servers may be on VMWare - I am not sure it at the moment. But please let me know if that will make any difference.
    I would highly appreciate if someone could please provide me with some high-level guidelines to perform this move.
    Best regards

    Hi Srini
    Thank you so much for sharing the valuable URLs.
    I am reading through "Cloning An Existing Oracle10g Release 2 (10.2.0.x) RDBMS Installation Using OUI [ID 559304.1]" and I have few questions.
    <li> This MOS says:
    NOTE: This note should only be used for cloning single-instance (non-RAC) homes. It should not be used for cloning RAC, CRS or ASM homes.If that is the case, how should I clone ASM-Home?
    One of the environments that I have to migrate to a new server has ASM installed as well. And couple of oracle databases (10.2.0.5) on that server are using ASM for storage.
    <li>If were to do a fresh installation of 10gR2 RDBMS and ASM homes (on Redhat Linux 64-bit), I guess I need to contact Oracle Support (open an SR) to access the software, right?
    <li>How to check from existing installation which patches I need to download and apply to this fresh installation in order to make it same as the existing installation? "opatch lsinventory" gives me a long list of number/fixes - I don't know which patch(es) to download.
    Please advise!
    Best regards
    Edited by: user130038 on May 22, 2013 3:48 AM
    Edited by: user130038 on May 22, 2013 3:55 AM

  • Moving oracle 9i database from windows 2000 to windows 2003 server

    hi everybody,
    plz provide me a solution how to move oracle 9i database from windows 2000 server to windows 2003 server with step by step and also with commands plz as i am very new to oracle
    thanks in advance
    suresh

    Install 9i on windows 2003 server and patch to the same level as the Oracle on Windows 2k
    Shutdown and make a cold backup of your old database. That includes datafiles, controlfiles, redo files, init file (spfile)
    Copy and put these files to the exact same directory structure/location, for example if old file is under D:\oradata\mysid\ then the file on new file should be under same directory. (If you are using Network Storage that make things easier, just mapping to the same drive letter.)
    Also make sure archive log dest and all dump dest directories are created. You don't have to copy all old logs and dump files over.
    Use oradim to create a new service for the database instance
    http://www.psoug.org/reference/oradim.html
    Set proper ORACLE_HOME, ORACLE_SID envionment varibles
    Run netca to configure listener, actually copy listener.ora and tnsnames.ora to $ORACLE_HOME\network\admin will do
    Try to start the database

  • Move Database from 11g SE to XE

    Good day!
    I need to move a 64-bit server is Oracle 11g Standart Edition for free Oracle XE 11g R2 32-bit.
    Please help, how do I do this?
    If I do a backup of the SE database with RMAN, and restor it to the XE, I get the error on startup when database opening ORA-00904: "EDITION": invalid identifier.
    The same error when manually copy data files, re-create the service, and spfile controlfiles.
    If I do a full export from SE, get a bunch of errors when importing to XE.

    I need to move a 64-bit server is Oracle 11g Standart Edition for free Oracle XE 11g R2 32-bit.Sounds like an odd direction, if you ask me...
    What is the exact version number of your 11 SE?
    If I do a backup of the SE database with RMANWhat did you backup? Of course, you can't restore a full backup from SE to XE, because though XE is based on the standard 11.2 installation it has been modified in various aspects.
    The same error when manually copy data files.That will never work between different database instances...
    If I do a full export from SE, get a bunch of errors when importing to XE.This would be the way I'd recommend for that procedure. How do you export/import and what errors do you get?
    -Udo

  • Accessing a 32 Bit Oracle 9.2 database from a 64 bit Windows 2008 Server

    Hi Guys,
    I hope someone might be able to help me I am trying to extract data from our existing oracle 9.2 Database onto our new 64 bbit 2008 server. The problem I seem to be having is that no matter what version of Oracle I try to install I'm not able to see any oracle Drivers in the ODBC\ODBC32 section.
    I have tried both the 32 bit Oracle 10g ODAC 10.1.0.4.0 and Oracle 11g ODAC 11.1.0.7.20 with no luck, hopefully some one can point me in the right direction. I don't tthink installing the 64 bit would work as the database is 32 bit is this correct or should I be using the 64 bit.
    Thanks in advance
    D0n_mac

    Hi,
    You need to install 64 bit client if you're going to use it with a 64 bit app. You dont need to worry how many bits the server is, the client takes care of that.
    Hope it helps,
    Greg

  • Move Database from one drive to another

    Hi ,
    I am using Windows Server 2003 and Oracle 10g R2 .
    I created the database my mistake in D drive , and need to move it to E drive , can someone please guide me about the procedure to do this .
    Thanks .

    You need to move the datafiles from drive D to drive E. Also you can move the redo log files and controlfies to your desired drive from drive D.
    ##how to move datafiles.
    1. Shut down the database E.G: shutdown immediate
    2. Move datafiles by OS commands. mv /oracle/product/dbs/test02.dbf /oracle/oradata/ORALOG/test02.dbf
    3. Startup the database in mount state e.g: startup mount
    4. Rename that file e.g: alter database rename file '/oracle/product/dbs/test02.dbf' to '/oracle/oradata/ORALOG/test02.dbf';
    5. Open the database e.g: alter database open.
    ##how to drop a redo log group
    alter database drop logfile group 1;
    ## how to add a new redo log group
    alter database add logfile group 1 ('/oracle/redofile/disk1/redo0101.log','/oracle/redofile/disk1/redo0102.log','/oracle/redofile/disk1/redo0103.log') size 50M;
    To add a multiplexed copy of the current control file or to rename a control file:
    1. Shut down the database.
    2. Copy an existing control file to a new location, using operating system commands.
    3. Edit the CONTROL_FILES parameter in the database initialization parameter file to add the new control file name,
    or to change the existing control filename.
    4. Restart the database. (by pfile)
    5. create spfile from pfile='/oracle/product/dbs/initORALOG.ora';
    Regards
    Asif Kabir

  • Not able to access database from a remote machine using SQL Server Management Studio

    Hi,
    I have a DB_BOX with SQL Server 2008 R2 installed. I can access the databases on the local machine using SQL Server Management Studio but it is not accessible from other machines, though the machines are in same domain.
    I have remote enabled on SQL Server box, TCP enabled, firewall off. I checked with IP Address too, all SQL Server services are running.
    The SQL Server log shows the message
    The requested service has been stopped or disabled and is unavailable at this time. The connection has been closed.
    I get the below message in SSMS from remote machine.
    Details of error message are
    ===================================
    Cannot connect to DB_BOX.
    ===================================
    A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - The specified network name is no longer available.) (.Net SqlClient Data Provider)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=64&LinkId=20476
    Server Name: DB_BOX
    Error Number: 64
    Severity: 20
    State: 0
    Program Location:
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
       at System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParserStateObject.ReadNetworkPacket()
       at System.Data.SqlClient.TdsParserStateObject.ReadBuffer()
       at System.Data.SqlClient.TdsParserStateObject.ReadByte()
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)
       at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
       at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
       at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
       at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
       at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
       at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
       at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
       at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
       at System.Data.SqlClient.SqlConnection.Open()
       at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
       at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()

    Sorry, missed the message from the errorlog in the original post. You shouldn't have included that big .Net dump that hid the important facts. :-)
    My first Google attempt on that message (which I have never seen before) suggests that the TCP Enpoint is stopped, so try this:
    ALTER ENDPOINT [TSQL Default TCP]
    STATE=STARTED;
    Erland Sommarskog, SQL Server MVP, [email protected]
    This solves the problem. Thanks...

  • Separate Server for OBIEE 11G Presentation Server

    In version 10 of OBIEE many people put the Presentation Server and the OBIEE Application Server on separate servers. Is this architecture possible in OBIEE 11G using the new Fusion framework?

    Hi,
    can your try to start presentation services alone via OPMN command, and then check the sawlog0.log lastest log message..
    example mine,
    D:\Oracle\Middleware\instances\instance1\bin>opmnctl startproc ias-component=coreapplication_obips1
    opmnctl startproc: starting opmn managed processes...
    check the staus and also log message
    still if its not working try to reboot your server and then "start all services"
    Thanks
    Deva

  • Installing Oracle 11g R 2 on Oracle Enterprise Linux 5.0 32 bit

    Hello All,
    I am installing the oracle 11g on Oracle Enterprise Linux 5.0 32 bit, when i modified the bash_profile. i am facing the below error:
    Please can you help to solve the issue
    the error i am facing while trying to switch to oracle user (su - oracle) is
    -bash: ulimit: open files: cannot modify limit: Operation not permitted
    new bash_profile:
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
         . ~/.bashrc
    fi
    # User specific environment and startup programs
    # Oracle Settings
    TMP=/tmp; export TMP
    TMPDIR=$TMP; export TMPDIR
    ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
    ORACLE_SID=DB11G; export ORACLE_SID
    ORACLE_TERM=xterm; export ORACLE_TERM
    PATH=/usr/sbin:$PATH; export PATH
    PATH=$ORACLE_HOME/bin:$PATH; export PATH
    # Oracle Settings
    #TMP=/tmp; export TMP
    #TMPDIR=$TMP; export TMPDIR
    #ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
    #ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
    #ORACLE_SID=TSH1; export ORACLE_SID
    #ORACLE_TERM=xterm; export ORACLE_TERM
    #PATH=/usr/sbin:$PATH; export PATH
    #PATH=$ORACLE_HOME/bin:$PATH; export PATH
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
    CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;
    export CLASSPATH
    if [ $USER = "oracle" ]; then
    if [ $SHELL = "/bin/ksh" ]; then
    ulimit -p 16384
    ulimit -n 65536
    else
    ulimit -u 16384 -n 65536
    fi
    fi
    export PATH

    Hi;
    Please check below link, and compare your steps wiht it
    http://www.oracle-base.com/articles/11g/OracleDB11gR2InstallationOnEnterpriseLinux5.php
    By the way did you try to put only this to your .bash_profile
    # Oracle Settings
    TMP=/tmp; export TMP
    TMPDIR=$TMP; export TMPDIR
    ORACLE_HOSTNAME=oel5-11gr2.localdomain; export ORACLE_HOSTNAME
    ORACLE_UNQNAME=DB11G; export ORACLE_UNQNAME
    ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
    ORACLE_SID=DB11G; export ORACLE_SID
    ORACLE_TERM=xterm; export ORACLE_TERM
    PATH=/usr/sbin:$PATH; export PATH
    PATH=$ORACLE_HOME/bin:$PATH; export PATH
    Regard
    Helios

Maybe you are looking for