EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);

hi, there i have execute this procedure in database
EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
How to query if the procedure is success.. tx

SETLISTENERLOCALACCESS Procedure (as per manual)
This procedure restricts all listener end points of the XML DB HTTP server to listen either only on the localhost interface (when l_access is set to TRUE) or to listen on both localhost and non-localhost interfaces (when l_access is set to FALSE).
If false then XDB endpoints are both on localhost and the public interfaces of the server. You can confirm that by
checking the service endpoints registered with the LOCAL_LISTENER (i.e. are the HTTP and/or FTP raw endpoints available on localhost and the public IP of the server)?
doing a physical check using telnet on the specified port on both localhost and the public IP
Note the XDB need dispatchers and shared servers, and the DISPATCHER parameter correctly configured.

Similar Messages

  • Cannot run 'exec dbms_xdb.setlistenerlocalaccess(false)' in sqlplus for XE

    Cannot run 'exec dbms_xdb.setlistenerlocalaccess(false)' from within sqlplus.
    Apparently it does not exist, because when i do
    sql> describe dbms_xdb
    it shows sethttpport... but not the setlistenerlocalaccess.

    Do you get any error messages?
    It works correctly for me:
    C:\WINDOWS\system32>sqlplus system/<pwd>@xe
    SQL*Plus: Release 10.2.0.1.0 - Production on Sa Feb 25 20:47:16 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Verbunden mit:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> exec dbms_xdb.setListenerLocalAccess(true);
    PL/SQL-Prozedur erfolgreich abgeschlossen.
    SQL> exec dbms_xdb.setListenerLocalAccess(false);
    PL/SQL-Prozedur erfolgreich abgeschlossen.###
    1) As which user do you connect?
    2) What version do you use (e.g. Windows Universal or Linux Western European)?
    3) Please post your error sqlplus protocol
    ~Dietmar.

  • Problem with dbms_xdb.setListenerLocalAccess(false);

    Hello,
    I just made a clean instal of XE and I loged in as sysdba and tried to run:
    exec dbms_xdb.setListenerLocalAccess(TRUE);
    but I keep getting and error
    component dbms_xdb.setListenerLocalAccess must be declared.
    I do not know if it is relevant or not, but I made an exception in firewall for 8080 and no antivirus is interfering.
    Any ideas what is wrong and how I can fix this.
    Thanks in advance.

    Hi jana;
    Please see:
    http://www.liberidu.com/blog/?p=185
    dbms_xdb.setListenerLocalAccess
    DBMS_XDB.SETLISTENERLOCALACCESS (missing on Linux)
    Regard
    Helios

  • Problem with DBMS_XDB.SETLISTENERLOCALACCESS (error PLS-00201)

    Hello everyone,
    I'm new to oracle and I have a problem after my installation.
    I install Oracle XE 11.2 on CENTOS 6.
    The installation does not seem to be a problem.
    Now I'm trying to activate the web interface for my lan with the command EXEC DBMS_XDB.SETLISTENERLOCALACCESS (FALSE);
    Unfortunately it does not work. Here is the error:
    -bash-4.1$ ./sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.2.0 Production on Wed Nov 20 15:40:23 2013
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
    SQL> EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
    BEGIN DBMS_XDB.SETLISTENERLOCALACCESS(FALSE); END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00201: identifier 'DBMS_XDB.SETLISTENERLOCALACCESS' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    SQL>
    If someone can help me ... (and sorry for my english).

    Pretty sure the ...setlistenerlocalaccess call is not needed for the 11g XE version, by default in a 10g XE install remote apex access was disabled "out of the box". There was a change to that behavior in the final (?) 11g installer.
    Try a `desc[ribe] dbms_xdb` in sqlplus, that should give a (fairly long) listing of that package, its procedures and functions. What matters for getting the apex web pages working is a few items that relate to the network setup for the host and how the installer gets all that set up in the $ORACLE_HOME/network/admin/listener.ora file.
    Also note per the XE docs, Managing Network Connections says to use a SYSTEM connection, not SYSDBA, although for the XE setup on my (windows host) either a sysdba or a system connection both run that exec statement OK for me. Might be a linux vs. windows thing.
    A `lsnrctl status` output will show an HTTP presentation endpoint (default port 8080) in the section "Listener endpoints ..." as well as an endpoint to service remote database connection requests on port 1521. If the 8080 endpoint is not showing up, nothing will get the apex working. Nothing.
    And if you want to connect to apex from a different (remote) host be sure port 8080 is open in the firewall. That step is a frequent tripping point for lots of folks.
    Message was edited by: clcarter
    added system connection info from XE docs

  • DBMS_XDB.SETLISTENERLOCALACCESS (missing on Linux)

    I've installed Oracle Express on Linux with a GUI and need to enable remote clients
    oracle-xe-univ-10.2.0.1-1.0.i386.rpm
    This version does not have the stored procedure
    dbms_xdb.setListenerLocalAccess
    It does exist on the windows version.
    Is there a work around for this problem using the command line?

    Windows:
    SQL> desc dbms_xdb
    FUNCTION ACLCHECKPRIVILEGES RETURNS BINARY_INTEGER
    Argument Name Type In/Out Default?
    ACL_PATH VARCHAR2 IN
    OWNER VARCHAR2 IN
    PRIVS XMLTYPE IN
    PROCEDURE APPENDRESOURCEMETADATA
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    DATA XMLTYPE IN
    PROCEDURE APPENDRESOURCEMETADATA
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    DATA REF OF XMLTYPE IN
    FUNCTION CFG_GET RETURNS XMLTYPE
    PROCEDURE CFG_REFRESH
    PROCEDURE CFG_UPDATE
    Argument Name Type In/Out Default?
    XDBCONFIG XMLTYPE IN
    FUNCTION CHANGEPRIVILEGES RETURNS BINARY_INTEGER
    Argument Name Type In/Out Default?
    RES_PATH VARCHAR2 IN
    ACE XMLTYPE IN
    FUNCTION CHECKPRIVILEGES RETURNS BINARY_INTEGER
    Argument Name Type In/Out Default?
    RES_PATH VARCHAR2 IN
    PRIVS XMLTYPE IN
    PROCEDURE CLEANSGAFORUPGRADE
    FUNCTION CREATEFOLDER RETURNS BOOLEAN
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    FUNCTION CREATEOIDPATH RETURNS VARCHAR2
    Argument Name Type In/Out Default?
    OID RAW IN
    FUNCTION CREATERESOURCE RETURNS BOOLEAN
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    DATA VARCHAR2 IN
    FUNCTION CREATERESOURCE RETURNS BOOLEAN
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    DATA XMLTYPE IN
    FUNCTION CREATERESOURCE RETURNS BOOLEAN
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    DATA REF OF XMLTYPE IN
    STICKY BOOLEAN IN DEFAULT
    FUNCTION CREATERESOURCE RETURNS BOOLEAN
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    DATA CLOB IN
    FUNCTION CREATERESOURCE RETURNS BOOLEAN
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    DATA BINARY FILE LOB IN
    CSID NUMBER IN DEFAULT
    FUNCTION CREATERESOURCE RETURNS BOOLEAN
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    DATA BLOB IN
    CSID NUMBER IN DEFAULT
    PROCEDURE DELETERESOURCE
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    DELETE_OPTION BINARY_INTEGER IN DEFAULT
    PROCEDURE DELETERESOURCEMETADATA
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    METADATA REF OF XMLTYPE IN
    DELETE_OPTION BINARY_INTEGER IN DEFAULT
    PROCEDURE DELETERESOURCEMETADATA
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    METADATANS VARCHAR2 IN
    METADATANAME VARCHAR2 IN
    DELETE_OPTION BINARY_INTEGER IN DEFAULT
    FUNCTION EXISTSRESOURCE RETURNS BOOLEAN
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    FUNCTION GETACLDOCUMENT RETURNS XMLTYPE
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    FUNCTION GETFTPPORT RETURNS NUMBER
    FUNCTION GETHTTPPORT RETURNS NUMBER
    PROCEDURE GETLISTENERENDPOINT
    Argument Name Type In/Out Default?
    ENDPOINT NUMBER IN
    HOST VARCHAR2 OUT
    PORT NUMBER OUT
    PROTOCOL NUMBER OUT
    PROCEDURE GETLOCKTOKEN
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    LOCKTOKEN VARCHAR2 OUT
    FUNCTION GETPRIVILEGES RETURNS XMLTYPE
    Argument Name Type In/Out Default?
    RES_PATH VARCHAR2 IN
    FUNCTION GETRESOID RETURNS RAW
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    FUNCTION GETXDB_TABLESPACE RETURNS VARCHAR2
    PROCEDURE LINK
    Argument Name Type In/Out Default?
    SRCPATH VARCHAR2 IN
    LINKFOLDER VARCHAR2 IN
    LINKNAME VARCHAR2 IN
    FUNCTION LOCKRESOURCE RETURNS BOOLEAN
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    DEPTHZERO BOOLEAN IN
    SHARED BOOLEAN IN
    PROCEDURE MIGRATEALLXMLFROM9201
    PROCEDURE MIGRATECOLUMNFROM9201
    Argument Name Type In/Out Default?
    OWNER VARCHAR2 IN
    TABLE_NAME VARCHAR2 IN
    COLUMN_NAME VARCHAR2 IN
    PROCEDURE MIGRATETABLEFROM9201
    Argument Name Type In/Out Default?
    OWNER VARCHAR2 IN
    TABLE_NAME VARCHAR2 IN
    PROCEDURE MOVEXDB_TABLESPACE
    Argument Name Type In/Out Default?
    NEW_TABLESPACE VARCHAR2 IN
    PROCEDURE PURGERESOURCEMETADATA
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    PROCEDURE REBUILDHIERARCHICALINDEX
    PROCEDURE RENAMERESOURCE
    Argument Name Type In/Out Default?
    SRCPATH VARCHAR2 IN
    DESTFOLDER VARCHAR2 IN
    NEWNAME VARCHAR2 IN
    PROCEDURE SETACL
    Argument Name Type In/Out Default?
    RES_PATH VARCHAR2 IN
    ACL_PATH VARCHAR2 IN
    PROCEDURE SETFTPPORT
    Argument Name Type In/Out Default?
    NEW_PORT NUMBER IN
    PROCEDURE SETHTTPPORT
    Argument Name Type In/Out Default?
    NEW_PORT NUMBER IN
    PROCEDURE SETLISTENERENDPOINT
    Argument Name Type In/Out Default?
    ENDPOINT NUMBER IN
    HOST VARCHAR2 IN
    PORT NUMBER IN
    PROTOCOL NUMBER IN
    PROCEDURE SETLISTENERLOCALACCESS
    Argument Name Type In/Out Default?
    L_ACCESS BOOLEAN IN
    FUNCTION UNLOCKRESOURCE RETURNS BOOLEAN
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    DELTOKEN VARCHAR2 IN
    PROCEDURE UPDATERESOURCEMETADATA
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    OLDMETADATA REF OF XMLTYPE IN
    NEWMETADATA REF OF XMLTYPE IN
    PROCEDURE UPDATERESOURCEMETADATA
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    OLDMETADATA REF OF XMLTYPE IN
    NEWMETADATA XMLTYPE IN
    PROCEDURE UPDATERESOURCEMETADATA
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    OLDNS VARCHAR2 IN
    OLDNAME VARCHAR2 IN
    NEWMETADATA XMLTYPE IN
    PROCEDURE UPDATERESOURCEMETADATA
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    OLDNS VARCHAR2 IN
    OLDNAME VARCHAR2 IN
    NEWMETADATA REF OF XMLTYPE IN
    Linux
    SQL> desc dbms_xdb
    FUNCTION ACLCHECKPRIVILEGES RETURNS BINARY_INTEGER
    Argument Name Type In/Out Default?
    ACL_PATH VARCHAR2 IN
    OWNER VARCHAR2 IN
    PRIVS XMLTYPE IN
    PROCEDURE APPENDRESOURCEMETADATA
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    DATA XMLTYPE IN
    PROCEDURE APPENDRESOURCEMETADATA
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    DATA REF OF XMLTYPE IN
    FUNCTION CFG_GET RETURNS XMLTYPE
    PROCEDURE CFG_REFRESH
    PROCEDURE CFG_UPDATE
    Argument Name Type In/Out Default?
    XDBCONFIG XMLTYPE IN
    FUNCTION CHANGEPRIVILEGES RETURNS BINARY_INTEGER
    Argument Name Type In/Out Default?
    RES_PATH VARCHAR2 IN
    ACE XMLTYPE IN
    FUNCTION CHECKPRIVILEGES RETURNS BINARY_INTEGER
    Argument Name Type In/Out Default?
    RES_PATH VARCHAR2 IN
    PRIVS XMLTYPE IN
    PROCEDURE CLEANSGAFORUPGRADE
    FUNCTION CREATEFOLDER RETURNS BOOLEAN
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    FUNCTION CREATEOIDPATH RETURNS VARCHAR2
    Argument Name Type In/Out Default?
    OID RAW IN
    FUNCTION CREATERESOURCE RETURNS BOOLEAN
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    DATA VARCHAR2 IN
    FUNCTION CREATERESOURCE RETURNS BOOLEAN
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    DATA XMLTYPE IN
    FUNCTION CREATERESOURCE RETURNS BOOLEAN
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    DATA REF OF XMLTYPE IN
    STICKY BOOLEAN IN DEFAULT
    FUNCTION CREATERESOURCE RETURNS BOOLEAN
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    DATA CLOB IN
    FUNCTION CREATERESOURCE RETURNS BOOLEAN
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    DATA BINARY FILE LOB IN
    CSID NUMBER IN DEFAULT
    FUNCTION CREATERESOURCE RETURNS BOOLEAN
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    DATA BLOB IN
    CSID NUMBER IN DEFAULT
    PROCEDURE DELETERESOURCE
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    DELETE_OPTION BINARY_INTEGER IN DEFAULT
    PROCEDURE DELETERESOURCEMETADATA
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    METADATA REF OF XMLTYPE IN
    DELETE_OPTION BINARY_INTEGER IN DEFAULT
    PROCEDURE DELETERESOURCEMETADATA
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    METADATANS VARCHAR2 IN
    METADATANAME VARCHAR2 IN
    DELETE_OPTION BINARY_INTEGER IN DEFAULT
    FUNCTION EXISTSRESOURCE RETURNS BOOLEAN
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    FUNCTION GETACLDOCUMENT RETURNS XMLTYPE
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    FUNCTION GETFTPPORT RETURNS NUMBER
    FUNCTION GETHTTPPORT RETURNS NUMBER
    PROCEDURE GETLOCKTOKEN
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    LOCKTOKEN VARCHAR2 OUT
    FUNCTION GETPRIVILEGES RETURNS XMLTYPE
    Argument Name Type In/Out Default?
    RES_PATH VARCHAR2 IN
    FUNCTION GETRESOID RETURNS RAW
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    FUNCTION GETXDB_TABLESPACE RETURNS VARCHAR2
    PROCEDURE LINK
    Argument Name Type In/Out Default?
    SRCPATH VARCHAR2 IN
    LINKFOLDER VARCHAR2 IN
    LINKNAME VARCHAR2 IN
    FUNCTION LOCKRESOURCE RETURNS BOOLEAN
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    DEPTHZERO BOOLEAN IN
    SHARED BOOLEAN IN
    PROCEDURE MIGRATEALLXMLFROM9201
    PROCEDURE MIGRATECOLUMNFROM9201
    Argument Name Type In/Out Default?
    OWNER VARCHAR2 IN
    TABLE_NAME VARCHAR2 IN
    COLUMN_NAME VARCHAR2 IN
    PROCEDURE MIGRATETABLEFROM9201
    Argument Name Type In/Out Default?
    OWNER VARCHAR2 IN
    TABLE_NAME VARCHAR2 IN
    PROCEDURE MOVEXDB_TABLESPACE
    Argument Name Type In/Out Default?
    NEW_TABLESPACE VARCHAR2 IN
    PROCEDURE PURGERESOURCEMETADATA
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    PROCEDURE REBUILDHIERARCHICALINDEX
    PROCEDURE RENAMERESOURCE
    Argument Name Type In/Out Default?
    SRCPATH VARCHAR2 IN
    DESTFOLDER VARCHAR2 IN
    NEWNAME VARCHAR2 IN
    PROCEDURE SETACL
    Argument Name Type In/Out Default?
    RES_PATH VARCHAR2 IN
    ACL_PATH VARCHAR2 IN
    PROCEDURE SETFTPPORT
    Argument Name Type In/Out Default?
    NEW_PORT NUMBER IN
    PROCEDURE SETHTTPPORT
    Argument Name Type In/Out Default?
    NEW_PORT NUMBER IN
    FUNCTION UNLOCKRESOURCE RETURNS BOOLEAN
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    DELTOKEN VARCHAR2 IN
    PROCEDURE UPDATERESOURCEMETADATA
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    OLDMETADATA REF OF XMLTYPE IN
    NEWMETADATA REF OF XMLTYPE IN
    PROCEDURE UPDATERESOURCEMETADATA
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    OLDMETADATA REF OF XMLTYPE IN
    NEWMETADATA XMLTYPE IN
    PROCEDURE UPDATERESOURCEMETADATA
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    OLDNS VARCHAR2 IN
    OLDNAME VARCHAR2 IN
    NEWMETADATA XMLTYPE IN
    PROCEDURE UPDATERESOURCEMETADATA
    Argument Name Type In/Out Default?
    ABSPATH VARCHAR2 IN
    OLDNS VARCHAR2 IN
    OLDNAME VARCHAR2 IN
    NEWMETADATA REF OF XMLTYPE IN
    From these descriptions you can see that
    PROCEDURE SETLISTENERENDPOINT
    and
    PROCEDURE SETLISTENERLOCALACCESS
    are missing on LINUX
    (oracle-xe-univ-10.2.0.1-1.0.i386.rpm)
    Error when attempting
    exec dbms_xdb.setlistenerlocalaccess(false);
    SQL> exec dbms_xdb.setlistenerlocalaccess(false);
    BEGIN dbms_xdb.setlistenerlocalaccess(false); END;
    ERROR at line 1:
    ORA-06550: line 1, column 16:
    PLS-00302: component 'SETLISTENERLOCALACCESS' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    A description of the package in Linux and Windows does not agree with your comment that this is identical on both systems. I cant comment about whether the UI works on Linux or not since have not access to a local browser.
    Thank you for your assistance.

  • Oracle 11gR2 Express Edition on Linux Ubuntu 11.10 howto

    h1. Oracle 11gR2 Express Edition on Linux Ubuntu 11.10 howto
    Author: Dude
    Version: D
    Last modified: 14-Jan-2012
    You are welcome to add comments, but please do not discuss your installation issues in this thread.  If you have a question about the instructions, please add a simple note to the link of your own thread. The instructions are the result of my own research and development. If you would like to use any of the information for your own blog or website, please include a link to this reference to include future changes.
    Oracle 11gR2 Express Edition on Linux Ubuntu 11.10 howto
    h2. Purpose
    This document outlines instructions how to install Oracle XE under Ubuntu 11.10.
    Ubuntu or Debian based Linux is not on the list of supported operation systems according to the Oracle documentation at http://download.oracle.com/docs/cd/E17781_01/install.112/e18802/toc.htm. You may want to consider virtualization software like Oracle Virtualbox and install Oracle Enterprise Linux as a free and professional alternative to installing XE under Ubuntu. You can also download pre-build virtual machines that include Oracle XE. You can browse http://otn.oracle.com/community/developer-vm for more information.
    h2. Topics
    h4. 1) Install Linux Ubuntu
    h4. 2) Remote Terminal
    h4. 3) Install Additional Software
    h4. 4) Managing Swap Space
    h4. 5) Modify Kernel Parameters
    h4. 6) Oracle Home Directory
    ...a) Resize the Root Partition
    ...b) Setup External Storage
    h4. 7) ORA-00845: MEMORY_TARGET
    h4. 8) Installing Oracle 11gR2 Express Edition
    h4. 9) Post-Installation
    h4. 10) Tips and Troubleshooting
    ...a) Port 1521 appears to be in use by another application
    ...b) cannot touch `/var/lock/subsys/listener': No such file or directory
    ...c) ORA-00845: MEMORY_TARGET
    ...d) Apex ADMIN password
    ...e) SYS and SYSTEM password
    ...f) Uninstall Oracle 11g XE
    ...g) Reconfigure Oracle 11g XE
    ...h) Gnome Classic desktop
    ...i) Unix vi cursor keys
    ...j) Backup Database
    h4. 11) History
    h4. 12) References
    h2. 1) Install Linux Ubuntu
    The following assumes you have installed Ubuntu 11.10 Desktop Edition for AMD 64-bit, or upgraded from a previous version. Keep in mind that Oracle 11gR2 Express Edition is only available for 64-bit architecture. It is not necessarily a requirement, but I would not bother to install Oracle 11gR2 XE on a system with less than 2 GB of RAM installed. You can download Ubuntu for free at: http://www.ubuntu.com/download/ubuntu and install it using the default settings provided.
    You can apply the latest OS patch-sets by clicking the power button icon in the upper right hand corner of the screen and selecting "Updates available..."
    h2. 2) Remote Terminal
    You will need command line access to perform the installation tasks. Select the top "Dash Home" button of the Unity toolbar and enter the word "terminal", or use CTRL-ALT-t. If you prefer to open a remote terminal session use SSH. Ubuntu does not come with a secure shell login by default. To install it, use the following command:
    sudo apt-get install openssh-serverYou cannot login as root unless you set a root password using the "sudo passwd root" command. However, you can get root user access using the "sudo" command, which requires only to re-enter the password of your personal account. Access to "sudo" is controlled by the /etc/sudoers file.
    The best way to establish a remote command line session as root is to login with your personal account, e.g.: ssh [email protected], and then type "sudo su -" to become root, or use "sudo <command>" to execute individual commands. If your account does not have "sudo" access you can login as root using "su - root", but will need to know the root password.
    h2. 3) Install Additional Software
    Oracle 11g Express Edition requires additional software that is not installed by default:
    sudo apt-get install alien libaio1 unixodbch2. 4) Managing Swap Space
    Oracle demands that the minimum swap space for Oracle Database XE is 2 GB (2095100 KB) or twice the size of RAM, whichever is lesser. Enter the following shell command to verify your swap space:
    cat /proc/meminfo | grep -i swap
    SwapCached:            0 kB
    SwapTotal:       2095100 kB
    SwapFree:        2095100 kBYou can increase available swap space by using a swap file as long as disk space permits. The advantage of a swap file versus a swap partition is flexible space management because you can add or delete swap space on demand as necessary. The following will create and enable an additional 1 GB swap file at system startup, located in the /home directory:
    Login as root:
    sudo su -Enter the following commands:
    dd if=/dev/zero of=/home/swapfile bs=1024 count=1048576
    mkswap /home/swapfile
    swapon /home/swapfile
    swapon -aCreate a backup of the original "fstab" file and add the new swap file:
    cp /etc/fstab /etc/fstab.backup_`date +%N`
    echo '/home/swapfile swap swap defaults 0 0' >> /etc/fstabExit from root and verify the new swap space:
    exit
    swapon -s
    Filename                    Type          Size     Used     Priority
    /dev/sda5                               partition     2095100     0     -1
    /home/swapfile                          file          1048572     0     -2Swap space is not a substitute for installed RAM. Swap space is a safeguard that allows the system to move idle processes to disk before the OOM killer will begin to terminate processes in order to free up enough real memory to keep the system operational. The general rule for sizing the swap space depends on the size of installed RAM. If your system has less then 4 GB of RAM the swap space should usually be at least twice this size. If you have more than 8 GB of RAM installed you may consider to use an equal size as swap space. The more RAM you have installed, the less likely you are going to run into memory starvation, and the less likely you are going to need swap space, unless you have a bad process.
    h2. 5) Modify Kernel Parameters
    Oracle 11gR2 Express Edition requires the following Kernel parameters. Enter the commands exactly as shown:
    Login as root:
    sudo su -Cut & paste the following directly into a command shell (not a text editor):
    cat > /etc/sysctl.d/60-oracle.conf <<-EOF
    # Oracle 11g XE kernel parameters
    fs.file-max=6815744
    net.ipv4.ip_local_port_range=9000 65500
    kernel.sem=250 32000 100 128
    # kernel.shmmax=429496729
    kernel.shmmax=107374183
    EOFLoad and verify the new kernel parameters:
    service procps start
    sudo sysctl -q fs.file-max
    sudo sysctl -q kernel.shmmax
    sudo sysctl -q net.ipv4.ip_local_port_range
    sudo sysctl -q kernel.sem The SHMMAX kernel parameter defines the upper memory limit of a process. It is a safeguard to stop a bad process from using all memory and causing RAM starvation. The Linux default is 32 MB. The official Oracle XE installation documentation suggests a value of 4 GB -1 bytes (429496729). Since Oracle 11g XE has a 1 GB memory limit, a smaller footprint will be a better safeguard for the complete system. Setting the SHMMAX parameter to 107374183 will be sufficient.
    h2. 6) Oracle Home Directory
    At the time of this writing, Enterprise Linux 6 is not supported for Oracle database yet. It is therefore not possible to confirm Oracle ext4 filesystem compatibility, which is default in Ubuntu 11. According to various information, ext4 may cause a performance problem for Oracle 11g database. The following will show you how to add a ext3 partition to your existing setup.
    h3. 6.a) Resize the Root Partition
    Provided you have sufficient free disk space, you should be able to resize the root partition to create an extra ext3 filesystem. Considering the 11 GB user datafile limit of the Express Edition, 18 GB should be more than enough.
    You can use the free Gparted Live CD to shrink your startup volume. Gparted downloads are available at http://sourceforge.net/projects/gparted/files/gparted-live-stable. When burning the CD, pay attention to burn the raw .iso image and not the possibly "mounted" image. If you are using a virtual machine like Oracle Virtualbox, you can mount the .iso image directly. There are going to be a few prompts when the system starts from the CD, but you can press Return to accept the defaults.
    When the Gparted window appears:
    - Select your ext4 root partition, usually /dev/sda1
    - Select the "Resize/Move" button from the toolbar.
    - Enter 18000 into the "Free space following" field and press the Return key.
      Be careful not not change the start of the partition!
    - Click the "Resize/Move" of the dialog and then then the "Apply" toolbar button.
      The process may take several minutes - do not abandon it!
    - Select the new unallocated free space of ~ 18 GB and push the "New" button.
    - Set the file system to "ext3" and label it "oraclexe" and click the "Add" button.
      Be sure to label it oraclexe, otherwise the follow-up instructions will fail.
    - Finally select "Apply from the toolbar to apply the changes.
    - Quit "Gparted", select "Exit" from the desktop and choose "Reboot" to restart the system.
    {code}
    After the system has restarted, open a terminal command shell.
    Login as root:
    {code}
    sudo su -
    {code}
    Backup "fstab" and add the UUID of the partition. The "tr" command remove the quotes:
    {code}
    cp /etc/fstab /etc/fstab_`date +%N`
    uuid=`blkid | grep oraclexe | awk '{print $3}'`
    uuid=`echo $uuid | tr -d '\042'`
    echo $uuid
    echo "$uuid  /u01  ext3  errors=remount-ro 0 1" >> /etc/fstab
    {code}
    The UUID is a unique number and should look similar to:
    {code}
    UUID=d1db753e-b5dd-4a4c-a61e-259c69867b58
    {code}
    Restart the system:
    {code}
    reboot
    {code}
    Verify the success:
    {code}
    df -h /u01
    {code}
    h3. 6.b) Setup External Storage
    If you prefer to setup an external drive to install Oracle XE, beware that it can be a fatal mistake to make an entry in /etc/fstab to automount your external storage device.  An unavailable device in /etc/fstab will prevent a system startup and prompt for appropriate actions at the console.
    The following is an example of how to prepare an external storage device to be used for Oracle 11g, including a script to automatically mount an external drive at system startup without the disadvantages of /etc/fstab. The script will also take into consideration that a device name might shift if you attach additional devices.
    To find out which USB devices are connected:
    {code}
    sudo parted -l
    {code}
    Look for the device that matches your USB storage. For example: /dev/sdb1
    {code}
    Model: USB 2.0 Flash Disk (scsi)
    Disk /dev/sdb: 2064MB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
    Number  Start   End     Size    File system  Name     Flags
    1      20.5kB  1929MB  1929MB  hfs+         mystick
    {code}
    Initialize the device using ext3 filesystem - this will erase all data. The "-c" option will check for bad blocks (read-only), "-L" is the volume label:
    {code}
    sudo umount /dev/sdb1
    sudo mkfs.ext3 -c -L oraclexe /dev/sdb1
    {code}
    Install the pmount distribution package:
    {code}
    sudo apt-get install pmount
    {code}
    Login as root:
    {code}
    sudo su -
    {code}
    Cut & paste the following into the command prompt (not a text editor):
    {code}
    cat > /etc/init.d/oracle-mount <<-EOF
    #! /bin/sh
    # /etc/init.d/oracle-mount
    VOL_UUID=alphanumeric
    VOL_LABEL=oraclexe
    VOL_SYMLINK=/u01
    mount=/usr/bin/pmount
    uuid2dev() {
       VOL_DEVICE="\`blkid | grep \$VOL_UUID | awk '{print \$1}'\`"
       VOL_DEVICE="\`echo \$VOL_DEVICE | tr -d ':'\`"
       echo \$VOL_DEVICE
    case "\$1" in
      start)
        echo "Starting script /etc/init.d/oracle-mount"
        uuid2dev
        \$mount \$VOL_DEVICE \$VOL_LABEL
        if [ -d /media/\$VOL_LABEL ]; then
           echo "Mount \$VOL_DEVICE success"
           ln -sf /media/\$VOL_LABEL \$VOL_SYMLINK
        else
           echo "Error mouting \$VOL_DEVICE"
        fi
      stop)
        echo "Stopping script /etc/init.d/oracle-mount"
        uuid2dev
        /bin/umount \$VOL_DEVICE 2>/dev/null
        if [ "\`/usr/bin/pmount | /bin/grep \$VOL_DEVICE\`" ]; then
           echo "Error unmounting \$VOL_DEVICE"
        else
           rm -f \$VOL_SYMLINK
        fi
        echo "Usage: /etc/init.d/oracle-u01 {start|stop}"
        exit 1
    esac
    ### BEGIN INIT INFO
    # Provides:          oracle-mount
    # Required-Start:    \$remote_fs \$syslog
    # Required-Stop:     \$remote_fs \$syslog
    # Default-Start:     2 3 4 5
    # Default-Stop:      0 1 6
    # Short-Description: Start daemon at boot time
    # Description:       Mount hotplug-usb drive and create symlink
    ### END INIT INFO
    EOF
    {code}
    Install the oracle-mount init script:
    {code}
    chmod 755 /etc/init.d/oracle-mount
    update-rc.d oracle-mount defaults 01 99
    {code}
    Get the UUID of the volume "oraclexe" and update the VOL_UUID in the init script accordingly:
    {code}
    uuid=`blkid | grep oraclexe | awk '{print $3}'`
    echo $uuid
    sed -i "s/^VOL_UUID=.*/VOL_$uuid/g" /etc/init.d/oracle-mount
    {code}
    The UUID of your device will be a unique number, but should be similar to:
    {code}
    UUID="3f5e9963-b328-49f3-b3e8-a3561ae34106"
    {code}
    Logout of root and test the init script:
    {code}
    exit
    sudo /etc/init.d/oracle-mount stop
    ls /u01
    sudo /etc/init.d/oracle-mount start
    ls /u01
    {code}
    Your output should look like:
    {code}
    Stopping script /etc/init.d/oracle-mount
    /dev/sdb1
    ls: cannot access /u01: No such file or directory
    Starting script /etc/init.d/oracle-mount
    /dev/sdb1
    Mount /dev/sdb1 success
    lost+found
    {code}
    h2. 7) ORA-00845: MEMORY_TARGET
    Oracle 11gR2 XE under Ubuntu 11.10 will result in "ORA-00845: MEMORY_TARGET not support on this system" either at Oracle database startup or during the initial installation. Ubuntu 11.10 uses a new version of the "systemd" system and session manager and has migrated away from /dev/shm and other common directories in favor of /run.
    There are several ways how to address the problem. You can either enable /dev/shm shared memory, or change the default memory management of Oracle 11g from AMM (Automatic Memory Management) to ASMM (Automatic Shared Memory Management) as it was in used the previous 10g version. Since AMM is one of the new features of 11g, the following will show you how to make to make AMM work.
    Login as root:
    {code}
    sudo su -
    {code}
    Cut & paste the following into the command prompt (not a text editor):
    {code}
    cat > /etc/init.d/oracle-shm <<-EOF
    #! /bin/sh
    # /etc/init.d/oracle-shm
    case "\$1" in
      start)
        echo "Starting script /etc/init.d/oracle-shm"
        # Run only once at system startup
        if [ -e /dev/shm/.oracle-shm ]; then
          echo "/dev/shm is already mounted, nothing to do"
        else
          rm -f /dev/shm
          mkdir /dev/shm
          mount -B /run/shm /dev/shm
          touch /dev/shm/.oracle-shm
        fi
      stop)
        echo "Stopping script /etc/init.d/oracle-shm"
        echo "Nothing to do"
        echo "Usage: /etc/init.d/oracle-shm {start|stop}"
        exit 1
    esac
    ### BEGIN INIT INFO
    # Provides:          oracle-shm
    # Required-Start:    $remote_fs $syslog
    # Required-Stop:     $remote_fs $syslog
    # Default-Start:     2 3 4 5
    # Default-Stop:      0 1 6
    # Short-Description: Bind /run/shm to /dev/shm at system startup.
    # Description:       Fix to allow Oracle 11g use AMM.
    ### END INIT INFO
    EOF
    {code}
    Install the oracle-shm init script:
    {code}
    chmod 755 /etc/init.d/oracle-shm
    update-rc.d oracle-shm defaults 01 99
    {code}
    Restart the system:
    {code}
    reboot
    {code}
    Verify the success:
    {code}
    sudo cat /etc/mtab | grep shm
    {code}
    {code}
    none /run/shm tmpfs rw,nosuid,nodev 0 0
    /run/shm /dev/shm none rw,bind 0 0
    {code}
    The upper limit of shared memory under Linux is set to 50 % of the installed RAM by default. If your system has less than 2 GB of RAM installed, there is still a chance to run into ORA-00845 error if your shared memory is used by other software.
    The verify available shared memory, type the following commands:
    {code}
    sudo df -h /run/shm
    {code}
    h2. 8) Installing Oracle 11gR2 Express Edition
    The final release version of Oracle 11gR2 Express Edition can be downloaded for free at http://otn.oracle.com/database/express-edition/downloads. The software should automatically downloaded into the "Downloads" folder of your home directory.
    Enter the following commands to unpack the installer:
    {code}
    cd ~/Downloads
    unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip
    rm oracle-xe-11.2.0-1.0.x86_64.rpm.zip
    {code}
    The Debian Linux based package management of Ubuntu is not compatible with the Red Hat package manager. The Oracle installer needs to be converted using the following commands:
    {code}
    cd ~/Downloads/Disk1
    sudo alien --to-deb --scripts oracle-xe-11.2.0-1.0.x86_64.rpm
    (This may take a few minutes)
    rm oracle-xe-11.2.0-1.0.x86_64.rpm
    {code}
    The following needs to be set for compatibility:
    {code}
    sudo ln -s /usr/bin/awk /bin/awk
    sudo mkdir /var/lock/subsys
    {code}
    Ubuntu uses different tools to manage services and system startup scripts. The "chkconfig" tool required by the Oracle installer is not available in Ubuntu. The following will create a file to simulate the "chkconfig" tool.
    Login as root:
    {code}
    sudo su -
    {code}
    Copy & paste the following *directly* into the command prompt to create a file:
    {code}
    cat > /sbin/chkconfig <<-EOF
    #!/bin/bash
    # Oracle 11gR2 XE installer chkconfig hack for Debian based Linux (by dude)
    # Only run once.
    echo "Simulating /sbin/chkconfig..."
    if [[ ! \`tail -n1 /etc/init.d/oracle-xe | grep INIT\` ]]; then
    cat >> /etc/init.d/oracle-xe <<-EOM
    ### BEGIN INIT INFO
    # Provides:                  OracleXE
    # Required-Start:        \\\$remote_fs \\\$syslog
    # Required-Stop:        \\\$remote_fs \\\$syslog
    # Default-Start:            2 3 4 5
    # Default-Stop:            0 1 6
    # Short-Description:   Oracle 11g Express Edition
    ### END INIT INFO
    EOM
    fi
    update-rc.d oracle-xe defaults 80 01
    EOF
    {code}
    Exit root:
    {code}
    exit
    {code}
    Set execute privileges:
    {code}
    sudo chmod 755 /sbin/chkconfig
    {code}
    Install Oracle 11gR2 Express Edition entering the following commands:
    {code}
    cd ~/Downloads/Disk1
    sudo dpkg --install ./oracle-xe_11.2.0-2_amd64.deb
    (This may take a couple of minutes)
    {code}
    Run the configuration script to create (clone) the database and follow the screen. Accept the default answers, including "y" to startup the database automatically, or modify as required.
    {code}
    sudo /etc/init.d/oracle-xe configure
    (This can take a few minutes - the installation completed successfully.)
    {code}
    To verify success, the procedure should end showing:
    {code}
    Starting Oracle Net Listener...Done
    Configuring database...Done
    Starting Oracle Database 11g Express Edition instance...Done
    Installation completed successfully.
    {code}
    Set a password for the Oracle account:
    {code}
    sudo passwd oracle
    {code}
    h2. 9) Post-Installation
    In order to use sqlplus and other tools, the Oracle account requires specific environment variables. The following will set these variables automatically at every Oracle login:
    Login as the Oracle user:
    {code}
    su - oracle
    {code}
    Copy the default account skeleton files and add the Oracle env script to .profile:
    {code}
    cp /etc/skel/.bash_logout ./
    cp /etc/skel/.bashrc ./
    cp /etc/skel/.profile ./
    echo "" >>./.profile
    echo '. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh' >>./.profile
    {code}
    By default, the Oracle Database XE graphical user interface is only available at the local server, but not remotely. The following will enable remote logins:
    Login as the Oracle user:
    {code}
    su - oracle
    {code}
    Login as SYSDBA and execute the following:
    {code}
    sqlplus / as sysdba
    SQL> EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
    exit
    {code}
    See http://download.oracle.com/docs/cd/E17781_01/admin.112/e18585/toc.htm for more information.
    h3. a) Unity desktop configurations
    The Oracle XE menu under the previous Gnome Classic desktop shows several useful scripts to backup the database, start and stop the database, etc. Under the Unity based desktop this menu is not available. You can either switch to the Gnome Classic desktop as outlined in chapter 2, or perform the following steps to modify and copy the scripts as outlined below. The start and stop database scripts will also be modified to perform a progress feedback.
    Login as user root:
    {code}
    sudo su -
    {code}
    Convert desktop files:
    {code}
    cd /usr/share/applications
    sed -i 's/Categories.*/Categories=Database;Office;Development;/g' oraclexe*
    sed -i 's/MultipleArgs/X-MultipleArgs/g' oraclexe*
    sed -i 's/MimeType.*/MimeType=application\/x-database/g' oraclexe*
    sed -i 's/.png//g' oraclexe*
    sed -i 's/Terminal=false/Terminal=true/g' oraclexe-startdb.desktop
    sed -i 's/Terminal=false/Terminal=true/g' oraclexe-stopdb.desktop
    {code}
    Exit root:
    {code}
    exit
    {code}
    Login as user Oracle:
    {code}
    su - oracle
    {code}
    Modify database start and stop scripts:
    {code}
    cd /u01/app/oracle/product/11.2.0/xe/config/scripts
    cp startdb.sh start.sh_orig
    cp stopdb.sh stopdb.sh_orig
    sed -i 's/>.*//g' startdb.sh
    sed -i 's/>.*//g' stopdb.sh
    {code}
    You will need SYSDBA privileges and set Oracle environment variables in order to use your regular user account.
    Login to your regular user account:
    {code}
    su - dude
    {code}
    Enter the folowing command:
    {code}
    sudo usermod -a -G dba dude
    {code}
    Then update your profile to automatically set the necessary Oracle environment variables:
    {code}
    echo "" >>./.profile
    echo '. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh' >>./.profile
    {code}
    Update your Desktop folder to contain useful Oracle XE scripts:
    {code}
    cp /usr/share/applications/oraclexe* ~/Desktop
    chmod 750 ~/Desktop/oraclexe*
    {code}
    To verify success re-login and try "sqlplus":
    {code}
    su - oracle
    sqlplus / as sysdba
    {code}
    h2. 10) Tips and Troubleshooting
    h3. 10. a) Port 1521 appears to be in use by another application
    Error: Port 1521 appears to be in use by another application. Specify a different port.This error happens after a previously unsuccessful configuration attempt using /etc/init.d/oracle-xe configure script. The script was able to start the Listener process, but most likely failed to continue  to clone the database, e.g. ORA-00845. The following should correct the problem:
    Determine the oracle listener process that is already running:
    {code}
    $ ps -ef | grep oracle
    {code}
    Your output should be similar to:
    {code}
    oracle   19789     1  0 19:46 ?        00:00:00 /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr
    {code}
    Then kill the process, using the appropriate process id, for instance:
    {code}
    $ sudo kill -9 19789
    {code}
    h3. 10.b) cannot touch `/var/lock/subsys/listener': No such file or directory
    Starting Oracle Net Listener...touch: cannot touch `/var/lock/subsys/listener': No such file or directoryThis error occurs when you run /etc/init.d/oracle-xe configure, but failed the preinstallation step to create the /var//lock/subsys directory as outlined in chapter 8.
    h3. 10.c) ORA-00845: MEMORY_TARGET
    ORA-00845: MEMORY_TARGET not supported on this system See chapter 7 to enable /dev/shm and verify free space available in /run/shm
    h3. 10.d) Apex ADMIN password
    According to the Oracle documentation, the password for the INTERNAL and ADMIN Oracle Application Express user accounts is initially the same as the SYS and SYSTEM administrative user accounts. Well, I tried several times without success. To reset the Apex Admin password:
    Login as user oracle:
    {code}
    su - oracle
    {code}
    Login as SYSDBA and type the following:
    {code}
    sqlplus / as sysdba
    {code}
    At the SQL prompt, type the following to be prompted to change the password:
    {code}
    SQL> @?/apex/apxxepwd.sql
    exit
    {code}
    When done, open your browser and go to http://127.0.0.1:8080/apex
    Workspace: Internal
    Username: ADMIN
    Password: password you set with apxxepwd.sql
    I will prompt you to reset the password:
    old password: password you set with apxxepwd.sql
    new password: final_password
    You can also login as the Apex Admin using http://127.0.0.1:8080/apex/apex_admin
    h3. 10.e) SYS and SYSTEM password
    Use the following commands to reset the SYS and SYSTEM passwords if necessary:
    Login as the Oracle user:
    {code}
    su - oracle
    {code}
    Login as SYSDBA and type the following at the SQL prompt:
    {code}
    sqlplus / as sysdba
    SQL> alter user sys identified by "password" account unlock;
    SQL> alter user system identified by "password" account unlock;
    SQL> exit
    {code}
    h3. 10.f) Uninstall Oracle 11g XE
    The following will completely uninstall and remove Oracle 11g XE:
    Open a terminal seesion and login as user root:
    {code}
    sudo su -
    {code}
    Enter the following:
    {code}
    /etc/init.d/oracle-xe stop
    dpkg --purge oracle-xe
    rm -r /u01/app
    rm /etc/default/oracle-xe
    update-rc.d -f oracle-xe remove
    update-rc.d -f oracle-mount remove
    update-rc.d -f oracle-shm remove
    {code}
    h3. 10.g) Reconfigure Oracle 11g XE
    Type the following commands in a terminal window:
    {code}
    sudo /etc/init.d/oracle-xe stop
    sudo rm /etc/default/oracle-xe
    sudo /etc/init.d/oracle-xe configure
    {code}
    h3. 10.h) Gnome Classic desktop
    Ubuntu 11 moved from the Gnome Classic desktop to Unity and removed the "Ubuntu Classic" login option. Unity was designed to make more efficient use of space given a limited screen size and touch screens. If you prefer to use the Gnome Classic desktop, enter the following into a terminal window:
    {code}
    sudo apt-get install gnome-panel
    {code}
    To log into the Gnome Classic desktop, select the "Gearwheel" at the login screen and select "Gnome Classic".
    h3. 10.i) Unix vi cursor keys
    The instructions in this tutorial do not require the use of any text editor. However, if you would like use the backspace and cursor keys in the "vi-editor", the following needs to be installed:
    {code}
    sudo apt-get install vim
    {code}
    h3. 10.j) Backup Database
    In order to perform an online database backup using the supplied "Backup Database" script, the database needs to run in Archive-Log mode. This can be setup using the following commands:
    Login as the Oracle user:
    {code}
    su - oracle
    {code}
    Login as SYSDBA and type the following:
    {code}
    sqlplus / as sysdba
    SQL> shutdown immediate
    SQL> startup mount
    SQL> alter database archivelog;
    SQL> alter database open;
    SQL> exit
    {code}
    h2. 11) History
    Version: A, 24-Oct-2011
    - first release
    Version: B, 25-Oct-2011
    - reduced instructions.
    - corrected errors in 6a and 8.
    - new strategy addressing ORA-00845 error.
    - rework of chapter 10.
    Version: C, 30-Nov-2011
    - corrected typo in 6a
    - new procedures in 9a.
    - added progress feedback to database scripts.
    Version D, 14-Jan-2012
    - corrected presentation errors.
    - reorganized instructions.
    h3. 12) References
    http://download.oracle.com/docs/cd/E17781_01/install.112/e18802/toc.htm
    http://askubuntu.com/questions/57297/why-has-var-run-been-migrated-to-run
    http://lwn.net/Articles/436012/
    https://forums.oracle.com/forums/thread.jspa?threadID=2300750&tstart=0
    Kind regards and best of luck!
    Dude.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Excellent Blog. Thank You
    Small clarification on Step **6) Oracle Home Directory, ...a) Resize the Root Partition**
    Ubuntu 11.10 has Gparted available as a Ubuntu software download, DONT use that while trying the above step, instead download the ISO file from http://sourceforge.net/projects/gparted/files/gparted-live-stable/ gparted-live-0.12.0-5.iso (124.6 MB)
    Burn that ISO file on a Blank DVD, reboot the Ubuntu , during startup select Boot from DVD Option if not already selected. this will take to Boot Menu Options of Gparted Live then select the first menu option, and this allows to do further action such as Re-sizing .
    and once you have chosen and executed step a) . do NOT run step b) also that is "Setup External Storage"
    I hope this minor clarification can avoid some confusion
    Regards
    Madhusudhan Rao
    Edited by: MadhusudhanRao on Mar 24, 2012 11:30 PM

  • Install Oracle 11gR2 Express Edition on Ubuntu Linux 11.04 (64-bit) Howto

    h2. Install Oracle 11gR2 Express Edition on Ubuntu Linux 11.04 (64-bit) Howto
    Version: B
    Author: Dude, 24. May 2011
    The following are step by step instructions how to install Oracle 11gR2 Express Edition (Beta) under Linux Ubuntu 11.04, 64-bit.
    Access to the Internet is required.
    The instructions cover the following additional topics:
    - Converting Red Hat based Oracle XE installer to Ubuntu.
    - Work-around for missing /sbin/chkconfig tool.
    - Install Oracle XE into a different directory or disk volume.
    - Relocate and configure the Oracle user and default login directory.
    - Uninstall, reconfigure and perform first database backup.
    - Notes and web links.
    - Troubleshooting
    h3. A) System Setup and Prerequisites
    h4. A.1. System Access
    You will need terminal command line, root and system console access to perform the setup tasks.
    To open a Terminal at the system console:
    Menu Applications > Accessories > TerminalThe following commands will enable remote ssh login with root access:
    sudo apt-get install openssh-server
    sudo passwd root
    Verify:
    ssh root@xe_server_host_nameh4. A.2. Software Prerequisites
    The following is required in order to install Oracle 11gR2 XE:
    sudo apt-get install alien libaio1 unixodbcThe following is not required, but it will fix backspace and arrow keys in case you prefer using the vi-editor:
    sudo apt-get install vimh4. A.3. System Swap space
    Minimum swap space required is 2 GB. You can increase swap space if necessary using a swap file:
    To analyze current swap space and memory configuration:
    sudo cat /proc/meminfo
    To install a 1 GB swapfile named swapfile in /, for example:
    sudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576
    (this may take a while)
    sudo mkswap /swapfile
    sudo swapon /swapfile
    sudo cp /etc/fstab /etc/fstab.orig
    sudo echo '/swapfile swap swap defaults 0 0' >> /etc/fstab
    Verify:
    sudo swapon -a
    sudo swapon -sh4. A.4. Kernel Parameters
    Oracle 11g XE requires the following additional kernel parameters:
    sudo nano /etc/sysctl.d/60-oracle.conf
    (Enter the following)
    # Oracle 11g XE kernel parameters
    fs.file-max=6815744
    net.ipv4.ip_local_port_range=9000 65000
    kernel.sem=250 32000 100 128
    kernel.shmmax=536870912
    (Save the file)
    Note: kernel.shmmax = max possible value, e.g. size of physical RAM.
    Verify: sudo cat /etc/sysctl.d/60-oracle.conf
    Load new kernel parameters:
    sudo service procps start
    Verify:
    sudo sysctl -q fs.file-max
    -> fs.file-max = 6815744h4. A.5. Oracle Installation Directory
    The current Oracle Installation Guide uses the same directory like in previous versions: /usr/lib/oracle/xe/app/oracle/product/11.2.0/server. However, the current Beta installation uses Oracle Flexible Architecture (OFA) and installs into /u01/app/oracle/product/11.2.0/xe. Due to size limitations of Oracle XE it may not be necessary to store the installation to a specific directory or separate volume, but it is possible:
    Install Oracle XE to separate disk volume:
    From the system console menu: System > Administration > Disk Utility
    Select "ext3" filesystem for Oracle compatibility and specify a Volume label, e.g. Oracle.
    Notice the device name e.g. /dev/sdb
    Get the drive UUID:
    sudo blkid
    e.g. /dev/sdb: UUID="d19a2d8f-da43-4802-8bdb-0703c855e23a"
    Modify /etc/fstab to automatically mount the volume at system startup:
    sudo cp /etc/fstab /etc/fstab.original
    sudo nano /etc/fstab
    (Add the following, using determined UUID, for exmple)
    UUID=d19a2d8f-da43-4802-8bdb-0703c855e23a /u01 ext3 defaults,errors=remount-ro 0 1
    (Save the file)
    Create the mount-point, mount the new volume and set ownership and privileges:
    sudo mkdir /u01
    sudo mount -a
    sudo chown root:root /u01
    sudo chmod 755 /u01
    Verify:
    df -h
    or restart the systemYou can also install Oracle XE into a specific directory:
    Create a symbolic link to store the installation into an existing directory, for instance:
    sudo mkdir /home/oracle-xe
    sudo ln -s /home/oracle-xe /u01h3. C) Oracle 11g XE Download and Installation
    h4. C.1. Download and convert the Installer from Red Hat to Ubuntu
    Please see section E.3. to download the Oracle 11gR2 XE installer.
    Select the version listed for Linux x64.
    sudo unzip linux.x64_11gR2_OracleXE.zip
    sudo alien --to-deb --scripts oracle-xe-11.2.0-0.5.x86_64.rpm
    (This may take a while)h4. C.2. Create a special chkconfig script
    The Red Hat based installer of Oracle XE 11gR2 beta relies on +/sbin/chkconfig+, which is not used in Ubuntu. The chkconfig package available for the current version of Ubuntu produces errors and my not be safe to use. Below is a simple trick to get around the problem and install Oracle XE successfully:
    Create /sbin/chconfig:
    sudo nano /sbin/chkconfig
    (Cut and paste the following)
    #!/bin/bash
    # Oracle 11gR2 XE installer chkconfig hack for Debian by Dude
    file=/etc/init.d/oracle-xe
    if [[ ! `tail -n1 $file | grep INIT` ]]; then
       echo >> $file
       echo '### BEGIN INIT INFO' >> $file
       echo '# Provides:             OracleXE' >> $file
       echo '# Required-Start:       $remote_fs $syslog' >> $file
       echo '# Required-Stop:        $remote_fs $syslog' >> $file
       echo '# Default-Start:        2 3 4 5' >> $file
       echo '# Default-Stop:         0 1 6' >> $file
       echo '# Short-Description:    Oracle 11g Express Edition' >> $file
       echo '### END INIT INFO' >> $file
    fi
    update-rc.d oracle-xe defaults 80 01
    (Save the file)
    Set appropriate execute privileges:
    chmod 755 /sbin/chkconfig
    Note: You should remove the /sbin/chkconfig file after successful installation of Oracle XE.
    h4. C.3. Install and configure Oracle XE
    sudo dpkg --install ./oracle-xe_11.2.0-1.5_amd64.deb
    /etc/init.d/oracle-xe configure
    (This will take a while)
    Remove the /sbin/chkconfig script, which is no longer needed.
    sudo rm /sbin/chkconfigh4. C.4. Relocate and Configure the Oracle user login
    The Oracle XE installer specifies /u01/app/oracle as the login directory for the Oracle user. Although not really necessary, the following will relocate the Oracle user $HOME to a standard location and create standard /etc/skel login files:
    Exit all Oracle user sessions:
    sudo /etc/init.d/oracle-xe stop
    sudo kill -9 `ps -ef | grep oracle | grep -v grep | awk '{print $2}'`
    sudo userdel oracle
    sudo useradd -s /bin/bash -G dba -g dba -m oracle
    sudo passwd oracle
    Verify:
    sudo id oracle
    -> uid=1001(oracle) gid=1001(dba) groups=1001(dba)h4. C.5. Setup Oracle environment variables
    In order to use sqlplus and other tools, the Oracle account requires certain environment variables. The following will set these variables automatically at every interactive Oracle login:
    sudo echo '. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh' >> /home/oracle/.bashrch4. C.6. Oracle sudo root access
    It is not essential to allow the Oracle user to use sudo, but it is convenient:
    usermod -G admin oracle
    Verify:
    id oracle
    -> uid=1001(oracle) gid=1001(dba) groups=1001(dba),120(admin)
    sudo su -
    -> Enter Oracle account passwordh4. C.7. Oracle 11g XE Post-installation
    After you install Oracle Database XE, its graphical user interface is only available from the local server, but not remotely.
    The following will correct the problem if necessary:
    Login as user Oracle or use:
    su - oracle
    sqlplus / as sysdba
    At the SQL prompt, enter the following command:
    EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
    exith3. D) Unintstall, Reconfigure and Troubleshooting
    h4. D.1. Uninstall Oracle 11g XE
    The following will completely uninstall and remove Oracle 11g XE:
    Login as user root:
    sudo su -
    /etc/init.d/oracle-xe stop
    dpkg --purge oracle-xe
    rm -r /u01/app
    rm /etc/default/oracle-xe
    update-rc.d -f oracle-xe removeh4. D.2. Reconfigure Oracle 11g XE
    Type the following in a terminal window:
    /etc/init.d/oracle-xe stop
    sudo rm /etc/default/oracle-xe
    /etc/init.d/oracle-xe configureh4. D.3. Enable Archivelog mode and perform a database backup
    Login as user Oracle:
    su - oracle
    sqlplus / as sysdba
    At the SQL prompt, enter the following commands:
    shutdown immediate
    startup mount
    alter database archivelog;
    alter database open;
    exit
    Login to system console of the Oracle user account:
    Select Applications > Oracle Database 11g Express Edition > Backup Databaseh3. E) Notes
    h4. E.1. Oracle 11g XE limitiations overview
    - It will consume, at most, processing resources equivalent to one CPU.
    - Only one installation of Oracle Database XE can be performed on a single computer.
    - The maximum amount of user data in an Oracle Database XE database cannot exceed 11 GB.
    - The maximum amount of RAM that Oracle XE uses cannot exceed 1 GB, even if more is available.
    - HTTPS is not supported natively with the HTTP listener built into Oracle Database XE.
    h4. E.2. Documentation and Links
    Official documentation for Oracle 11gR2 XE can be found at:
    http://www.oracle.com/pls/xe112/homepage
    h4. E.3. Oracle 11g XE downloads
    The Installer is available from the Oracle Technology Network at:
    http://www.oracle.com/technology/products/database/xe
    http://www.oracle.com/technetwork/database/express-edition/downloads/index.html
    h4. E.4 APEX links and archives
    The APEX archives can be found at:
    http://www.oracle.com/technetwork/developer-tools/apex/application-express/all-archives-099381.html
    The APEX download site is:
    http://www.oracle.com/technetwork/developer-tools/apex/downloads/index.html
    h3. F) Troubleshooting
    ... in progress
    Regards and best of luck!
    Edited by: Dude on May 25, Version B: various corrections. chkconfig package (A.2.) not required.

    even though I am admin user.Admin user is a MS Windows term, that does not apply to Linux or Unix in the same fashion.
    The configuration script tells you "You must be root user to run the configure script. Login as root user and
    then run the configure script."
    This is most likely correct because your account is not root and does not have UID 0. What you can do is to login as root e.g. sudo su -, as the message suggest, or use "sudo /etc/init.d/oracle-xe configure", provided your account is defined in the /etc/sudoers file to perform root/admin actions.
    Btw, do not modify /etc/passwd and /etc/group to give you admin privileges or try to create a another root account under a different name. That's not the way it works and usually leads to nasty problems.

  • Cannot login after upgrading to Apex 3.1.2

    I have installed the oracle-xe-10.2.1-1.0.i386.rpm onto a RedHat server using
    ]# rpm -ivh oracle-xe-10.2.0.1-1.0.i386.rpm
    Then I configure the database
    ]# /etc/init.d/oracle-xe configure
    Then I enable remote access
    EXEC DBMS_XDB.SETLISTENERLOCALACCESS (FALSE);
    This appears to work properly and I can log into the Apex page at http://server:8080/apex/apex_admin
    After this install I'm attempting to upgrade to Apex 3.1.2 and have attempted this several times. Each time, the result is that I can bring up the web page, but cannot authenticate. All that I see is "error on page" at the bottom left of the window. (IE6 or Firefox).
    To complete the upgrade I do the following.
    ]$ sqlplus /nolog
    SQL> @apexins SYSAUX SYSAUX TEMP /i/
    After the install runs the last few lines are
    Upgrade completed successfully no errors encountered.
    -- Upgrade is complete -----------------------------------------
    timing for: Upgrade
    Elapsed: 00:00:34.60
    ...End of install if runtime install
    ...create null.sql
    timing for: Development Installation
    Elapsed: 00:18:18.29
    not spooling currently
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 – Production
    I have then stopped and restarted the oracle-xe
    Then I have logged back in with sqlplus / as sysdba
    and run
    @apxxepwd.sql or @apxchpwd (different attempts at the install)
    After all of this appearing to run successfully, I cannot log into either the basic apex screen or the apex admin screen.
    When it has failed, I have uninstalled the RPM and deleted the remanant folder.
    Then re-installed from scratch.
    I'm new to oracle, and any assistance would be appreciated.

    Thank you for your reply. I get the followin errors while trying your suggestions.
    The password change appears to be successful.
    SQL> @apxldimg.sql /opt/oracle-instdir/apex
    PL/SQL procedure successfully completed.
    old 1: create directory APEX_IMAGES as '&1/apex/images'
    new 1: create directory APEX_IMAGES as '/opt/oracle-instdir/apex/apex/images'
    Directory created.
    declare
    ERROR at line 1:
    ORA-22288: file or LOB operation FILEOPEN failed
    No such file or directory
    ORA-06512: at "SYS.DBMS_LOB", line 523
    ORA-06512: at "SYS.XMLTYPE", line 287
    ORA-06512: at line 15
    PL/SQL procedure successfully completed.
    Commit complete.
    timing for: Load Images
    Elapsed: 00:00:00.03
    Directory dropped.
    SQL>

  • HTTP 400 Bad Request when accessing Oracle XE/Apex from the Internet

    I have Oracle Express Edition upgraded to Apex 3.2. I can access everything (SQL prompt, Apex HTTP) from my local machine. I have configured the server for remote access on a non-default (not 8080) port.
    I have executed: exec dbms_xdb.setListenerLocalAccess(false);
    I can access the server using:
    http://coyote:9977/apex (brings me to Application Express Administration Services login screen)
    (where "coyote" is the local machine name of my Windows Vista box, where the Oracle/Apex server is installed.)
    But when I try:
    http://internet_server_name:9977/apex
    (where "internet_server_name" is the internet DNS name visible of my machine visible from the internet.)
    I get "HTTP 400 Bad Request"
    I know the request is hitting the Oracle Listener (getting through firewalls, cable modem router, etc) since the http attempt causes the entry:
    20-MAR-2009 20:36:53 * http * (ADDRESS=(PROTOCOL=tcp)(HOST=68.189.244.22)(PORT=52540)) * handoff * http * 0
    to be made in the C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
    An attempt using the local (Windows) machine name makes a similar entry in the listener log:
    20-MAR-2009 20:47:35 * http * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.7)(PORT=52811)) * handoff * http * 0
    This seems like a security issue of some kind (is the server dropping a request from "outside" the local domain?)
    I'm new to Oracle so I am not familiar with how to debug this sort of connectivity issue. In case it helps:
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
    Start Date 20-MAR-2009 19:27:00
    Uptime 0 days 1 hr. 30 min. 59 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
    Listener Log File C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=coyote)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=coyote)(PORT=9977))(Presentation=HTTP)(Session=RAW))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "XEXDB" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Service "XE_XPT" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Service "xe" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    The command completed successfully
    Any help appreciated,
    john

    Hans Forbrich wrote:
    CoyoteTech wrote:
    I have tried running with the firewall (F-Secure) completely disabled, but it made no difference. I do see the request hit the listener, and the handoff appears to be successful, but it goes silent from there. I also have a cable modem router that has the port forwarding set, but maybe there are other handoff ports besides the initial one (e.g. 8080) that need to be forwarded?Please also check the Windows firewall is off as well. Yes, Windows Firewall is disabled as well. See my previous post to Tyler - I'm pretty sure the reqwuest makes it through the firewall/router layer, since it causes an entry in Listener.log
    Is your problem through the router only? In other words, if you try from a second machine that is on the same side as your XE, are you working OK? (My home ISP blocks a bunch of ports. Including SMTP, FTP, Telnet. And 8080 since that is a traditional default for many Java 'servers'.)
    Yes, it appears to be related to a non-local IP address. I'm sure it makes it through the router - I also have several other ports that make it through (e.g. port 80).
    I have poked around the DBMS_EPG docs, and ran a few of the commands there (list DADS etc). DBMS_EPG was first 'released' to us in 10gR2. As far as I'm concerned, XE is the public 'beta' or 'release candidate'. (This is supported by Oracle's docs that state that Apex using DBMS_EPG is first supported using 10.2.0.3 or 11g.) There are known bugs and there is no way to patch XE to fix them. However, I do not know whether you are hitting those bugs.
    http://www.astral-consultancy.co.uk/cgi-bin/hunbug/doco.cgi?11410 provides some good notes.
    Interesting. I will check out these docs later today.
    >>
    What happens when the listener hands off to a registered handler?
    http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/concepts.htm#i1049597 gives a good description.
    Thanks.
    How do I pick up the [log] trail from there?I'm thniking that the listener's log is still the primary way to go. You may need to increase the log or trace level. I have not investigated how to gen or access logs inside EPG.I tried Tyler's trace but did not seem to add additional info to the Listener.log.

  • Cannot connect to database from a client machine (ORA-12154)

    Hi,
    I have installed Oracle XE Server on one of my machines and Oracle XE Client on another. When I try to connect to the server from the client using command line, error ORA-12154 is displayed. I am pasting the data of my .ora files so that you can point out the errors if any in these files.
    Listener.ora
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = abo-server.abosoftware.org)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    Sqlnet.ora
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    Tnsnames.ora
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = abo-server.abosoftware.org)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    I will be very happy if anyone can suggest me a solution.
    Thanks & Regards,
    Harshad

    Harshad,
    CONNECT system/[email protected]
    This was not what I asked you to try, this cannot work ;).
    I asked you to try :
    connect system/[email protected]:1521/XE
    I have also tried accessing the database homepage remotely using the url
    http://abo-server.abosoftware.org:8080/apex
    Per default only local access (from the same machine) is allowed via http.
    You can change that either via the GUI (log in as SYSTEM):
    Home>Administration>Manage HTTP Access
    OR
    connect as SYSTEM via sqlplus and run:
    SQL>exec dbms_xdb.setListenerLocalAccess(false);###
    It is documented at
    http://download-west.oracle.com/docs/cd/B25329_01/doc/install.102/b25144/toc.htm#BABIJBHJ
    And yes, you need to open both ports 1521 and 8080 to access it remotely.
    ~Dietmar.

  • XE Client not able to access XE Server database

    I have installed Oracle Database 10g Express Edition (Western European) OracleXE.exe on one Windows XP machine and Oracle Database 10g Express Client OracleXEClient.exe on onother. I have followed the instructions to set the Server to accept remote access by performing EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE); as SYSTEM. I can ping the machine running the XE Server (10.5.111.86) from my Client machine, yet I cannot access the remote XE Server using either http://10.5.111.86:8080/apex or from the SQL command line as connect SYSTEM/mypassword@//10.5.111.86:1521/XE. The http access ultimately yields a Page Not Found and the sql connect yields a ERROR:
    ORA-12170: TNS:Connect timeout occurred.

    Can you telnet to it on port 8080?
    Open a command prompt and type:
    telnet 10.5.111.86 8080
    you should see a blinking cursor. If not turn off all firewalls on the target machine and try again.
    Brett

  • Anyone used the 32bit Oracle 11106_EE AMI and has it working?

    Hi,
    I've gotten a fresh AMI of the 11.1.0.6 EE installation running and have a database created. My problem is I can't connect to any of the http ports. I've done the ec2-authorize commands to open the ports and can connect to the listsner port (1521), but the em port and apex port won't connect. Does anyone have any ideas where I could start looking to troubleshoot? It all looked so easy in the video :) I've tried stopping and restarting the dbconsole (emctl start dbconsole) and find an error in the emagent.log file "Startup of HTTP LISTENER failure". When I go into the database and try to open the apex listener I receive this:
    SQL> exec dbms_xdb.setlistenerlocalaccess(FALSE);
    BEGIN dbms_xdb.setlistenerlocalaccess(FALSE); END;
    ERROR at line 1:
    ORA-30952: illegal configuration of HTTP/HTTPS in xdbconfig.xml
    ORA-06512: at "XDB.DBMS_XDB", line 713
    ORA-06512: at "XDB.DBMS_XDB", line 885
    ORA-06512: at line 1
    Not quite sure what is going on with this. I'd appreciate it if someone could point me in the right direction.
    Thanks!
    Mark

    If you have opened ports 1158 (for EM) and 8080 (for APEX), you should not be running into this problem.
    If this is still an issue, I suggest you fire up another EC2 instance with the same AMI and see if you can access the http port. If the database creation process completes successfully, the EM and APEX should be configured and http ports should be accessible. If not, there has to be an issue with your security groups (e.g. opened port) setting.

  • Premiere elements 9 - the requested file is not available for download

    I bought the download copy of premiere elements and photoshop 9.
    I tried downloading the Akami download, but i got an error message as in hte thread title.
    I tried the alternative way to download, and i got a file littered with corrupted files, and it wouldn't set up....Is there a way to download this properly, or should i be requesting they send me a hard copy?
    Thanks in advance for any replies....Huck

    Hi
    Found this work-around on the following webpage http://download.oracle.com/docs/cd/B25329_01/doc/install.102/b25143/toc.htm
    you select either of these options and then click Apply Changes, one of the following may occur:
    An error saying that the page cannot be displayed (or a 404 error, depending on your browser)
    A delay, followed by a 500 server error or a blank page
    You can disregard these occurrences. The option that you selected will be successfully applied.
    Workaround: To avoid these occurrences, use SQL*Plus to enable or disable remote access. You can start SQL*Plus by selecting Run SQL Command Line from the Oracle Database 10g Express Edition menu. Then enter the following commands:
    SQL> CONNECT SYS/AS SYSDBA (Or enter CONNECT SYSTEM)
    Enter password: password
    SQL> EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE); (To enable remote access)
    SQL> EXEC DBMS_XDB.SETLISTENERLOCALACCESS(TRUE); (To disable remote access)
    Let us know if this helps you.
    thanks

  • Connect to Apex from LAN

    Hi
    Hi,
    I'm a beginner to APEX, everything's just new. I've just instaledl APEX on Oracle 11g, with APEX listener 1.1, working fine at localhost. But I can't reach it from others computers on LAN. I searched several threads about this and thought I should run
    EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
    But when I execute that, I got the message 'ORA-30952: illegal configuration of HTTP/HTTPS in xdbconfig.xml'. Any idea?
    Many thanks
    Nguyen

    user1152556 wrote:
    Hi
    Hi,
    I'm a beginner to APEX, everything's just new. I've just instaledl APEX on Oracle 11g, with APEX listener 1.1, working fine at localhost. But I can't reach it from others computers on LAN. I searched several threads about this and thought I should run
    EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
    But when I execute that, I got the message 'ORA-30952: illegal configuration of HTTP/HTTPS in xdbconfig.xml'. Any idea?
    Many thanks
    NguyenHi,
    I'm not sure but, you might get that error when Embed PL/SQL Gateway (EPG) port is not set.
    Using that command is valid only if you use EPG.
    You say that you use APEX listener, so I propose you check that your server firewall is not blocking connection.
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Could not connect  to a remote  Oracle db

    Hello ,
    I would to connect with Sqlplus ( Installed Oracle version 9i Release 1 (9.0.1.1.1) for Windows) from my external machine , runnig with Windows XP as OS , to a remote Oracle 10g db installed on a virtual machine running with Ubuntu as OS .
    The same senario should be working in the other direction ( from Ubuntu ( Virtual machine ) to Windows XP ( external machine ) .
    The DBlinks between the two dbs were well created at both sides.
    At Windows side ( external machine ) the tnsnames is already updated .
    At Ubuntu side and in order to allow listener accept remote connections, the following command was executed :
    EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
    At Ubuntu side there is no tnsnames file to update .
    I try to connect from both sides to the remote linked db but no result was obtained and the same error occured :
    - From external machine side :
    SQL> select * from Client1@XE;
    select * from Client1@XE
    ERROR at line 1:
    ORA-12154 : TNS: could not resolve the connect identifier specified
    - From virtual machine side :
    SQL> select * from Client4@ING3;
    select * from Client1@XE
    ERROR at line 1:
    ORA-12154 : TNS: could not resolve the connect identifier specified
    I'm not sure , but the reason could be the missing settings that have to be filled in the missing tnsnames file at Ubuntu Side .
    Could you please tell how and where to add the missing tnsnames file at Ubuntu side?
    Thank you
    khaled

    Try replacing
    jdbc:oracle:thin:@SFOServer:1521/DevDB
    with
    jdbc:oracle:thin:@SFOServer:1521:DevDB

Maybe you are looking for

  • Have errors in my code

    i tryed to extracte links from url page. and now i have some errors can you place help me.my errors only in the first part of code. thanks alot. package hw; import java.*; import java.net.URI; import java.util.ArrayList; import java.util.Collection;

  • My mac only starts on guest user and cant log in to my main account

    I left my mac alone for like 10 minutes and it shut off alone( or dont know what happened) and when it restarted it went to guest account automatically. What can i do to log in to my main account!!

  • Random Images in Dreamwaever CS5?

    Hi, I'd like to set up  my site so that every time the homepage reloads, a different image dispays each time. How is this done in Dreamweaver? Thanks!

  • Need assistance placing files on Time Capsule

    I am trying to move an iTunes library to a Time Capsule. Several computers are connected to said TC. One was used to set up the TC. One of the other computers is running OS 10.5.8 and is very close to running out of HD space. The thought was to move

  • Project Tracker List, option to choose new summary Task or new task

    Hi All, I created a Project List using the OOTB Project Tracker in SharePoint 2010.  This is fine as we want to be able to create a Project, in this case the Summary Task, and then within that project create Tasks. The list by default is already setu