Skip to content
The Chat Archive
gpt-3.5-turbo-0613· OpenAI WildChat-4.8M (AI2)

oracle 12 installation on ubuntu

  1. User

    oracle 12 installation on ubuntu

  2. Assistant

    To install Oracle 12c on Ubuntu, you can follow the below steps:

    1. Download the Oracle Database 12c installation files (both the database software and the preinstallation RPM) from the Oracle website.

    2. Install the required dependencies by running the following command:

      sudo apt-get install alien libaio1 unixodbc
      
    3. Convert the RPM files to deb format using the alien command. Assuming you have downloaded the RPM files to the current directory, run the following command:

      sudo alien -i oracle-rdbms-server-12cR1-preinstall.x86_64.rpm
      
    4. Create a new directory to hold the Oracle software and extract the downloaded Oracle Database software zip file into it:

      mkdir ~/oracle
      unzip -d ~/oracle linux.x64_12c_database_1of2.zip
      unzip -d ~/oracle linux.x64_12c_database_2of2.zip
      
    5. Change to the database directory and run the installer:

      cd ~/oracle/database
      sudo ./runInstaller
      
    6. The Oracle Database installer GUI will start. Follow the on-screen instructions to complete the installation.

    7. After the installation is complete, you will need to run some post-installation steps. Open a terminal and run the following commands:

      sudo /home/oracle/app/oraInventory/orainstRoot.sh
      sudo /home/oracle/app/oracle/product/12.1.0/dbhome_1/root.sh
      
    8. Finally, configure the Oracle environment variables by editing the ~/.bashrc file and adding the following lines at the end:

      export ORACLE_HOME=/home/oracle/app/oracle/product/12.1.0/dbhome_1
      export PATH=$ORACLE_HOME/bin:$PATH
      export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
      
    9. Save the file and run the following command to apply the changes:

      source ~/.bashrc
      

    That's it! Oracle Database 12c should now be installed and ready to use on your Ubuntu system.

  3. User

    docker installation on ubuntu

  4. Assistant

    To install Docker on Ubuntu, you can follow these steps:

    1. Update the apt package list:

      sudo apt update
      
    2. Install the necessary packages that allow apt to use repositories over HTTPS:

      sudo apt install apt-transport-https ca-certificates curl software-properties-common
      
    3. Add the official Docker GPG key:

      curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
      
    4. Set up the stable Docker repository:

      echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
      
    5. Update the apt package list (again):

      sudo apt update
      
    6. Install Docker:

      sudo apt install docker-ce docker-ce-cli containerd.io
      
    7. Docker should now be installed. You can verify it by checking the Docker version:

      docker --version
      
    8. (Optional) If you want to run Docker without sudo on each command, you can add your user to the docker group:

      sudo usermod -aG docker $USER
      

      It is recommended to log out and log back in after running this command for the changes to take effect.

    That's it! Docker should now be successfully installed on your Ubuntu system.

  5. User

    docker login container-registry.oracle.com Authenticating with existing credentials... WARNING! Your password will be stored unencrypted in /home/csadmin/.docker/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store

    Login Succeeded csadmin@csadmin-vi:~$ docker pull container-registry.oracle.com/database/enterprise:12.1.0.2 Error response from daemon: pull access denied for container-registry.oracle.com/database/enterprise, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

  6. Assistant

    The error message suggests that you do not have proper access to pull the desired image from the Oracle Container Registry. This could be due to one of the following reasons:

    1. Incorrect login credentials: Please ensure that you are using the correct username and password when logging in to the Oracle Container Registry. Double-check the credentials and run the docker login command again.

    2. Insufficient permissions: It's possible that your account does not have the required permissions to access the specific image repository. Make sure that your account has the appropriate access rights to pull images from the Oracle Container Registry.

    3. Non-existing or restricted repository: The repository container-registry.oracle.com/database/enterprise might not exist or may be restricted. Verify that the repository name and image tag you are trying to pull are correct. You can check the official Oracle Container Registry documentation or contact Oracle support for further assistance.

    It's also worth noting that the Oracle Container Registry may have specific usage terms and conditions that you need to comply with. Make sure you are properly licensed and authorized to use the Oracle images within your environment.

  7. User

    installing oracle 12c when it have 1of2 and 2of2 on ubuntu

  8. Assistant

    To install Oracle Database 12c when you have downloaded both the "1of2" and "2of2" files, you can follow these steps:

    1. Create a new directory to hold the Oracle software and extract the downloaded Oracle Database software zip files into it:

      mkdir ~/oracle
      unzip -d ~/oracle linux.x64_12c_database_1of2.zip
      unzip -d ~/oracle linux.x64_12c_database_2of2.zip
      
    2. Change to the database directory:

      cd ~/oracle/database
      
    3. Ensure that the oracle-database-preinstall-18c package is installed. Run the following commands:

      sudo apt update
      sudo apt install oracle-database-preinstall-18c
      
    4. Start the Oracle Database installer:

      sudo ./runInstaller
      
    5. The Oracle Database installer GUI will start. Follow the on-screen instructions to complete the installation.

    6. After the installation is complete, you will need to run some post-installation steps. Open a terminal and run the following commands:

      sudo /home/oracle/app/oraInventory/orainstRoot.sh
      sudo /home/oracle/app/oracle/product/12.1.0/dbhome_1/root.sh
      
    7. Finally, configure the Oracle environment variables by editing the ~/.bashrc file and adding the following lines at the end:

      export ORACLE_HOME=/home/oracle/app/oracle/product/12.1.0/dbhome_1
      export PATH=$ORACLE_HOME/bin:$PATH
      export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
      
    8. Save the file and run the following command to apply the changes:

      source ~/.bashrc
      

    That's it! Oracle Database 12c should now be installed and ready to use on your Ubuntu system. Remember to adjust the specific commands if your downloaded files have different names or versions.

  9. User

    Error in invoking target 'client_sharedlib' of makefile '/home/csadmin/app/csadmin/product/12.1.0/dbhome_2/rdbms/lib/ins_rdbms.mk'. See '/home/csadmin/app/oraInventory/logs/installActions2023-10-03_03-41-10PM.log' for details

  10. Assistant

    The error you encountered indicates that there was an issue with the makefile during the installation of Oracle Database 12c. To troubleshoot this problem, you can check the installation log file mentioned in the error message for more details and try the following steps to resolve the issue:

    1. Open the installation log file /home/csadmin/app/oraInventory/logs/installActions2023-10-03_03-41-10PM.log in a text editor.

    2. Look for any specific error messages or stack traces that might provide more insights into the issue. The log file should contain detailed information about the exact error that occurred.

    3. Make sure you have met all the prerequisites and system requirements for installing Oracle Database 12c on Ubuntu. Check the Oracle documentation for the exact requirements and dependencies.

    4. Ensure that the environment variables ORACLE_HOME and LD_LIBRARY_PATH are properly set. Double-check if they are pointing to the correct directories.

    5. Verify that all necessary packages and dependencies were installed successfully before starting the Oracle installation process.

    6. If the issue persists, it could be due to a corrupted installation file or an issue with your system. Try downloading the installation files again from the official Oracle website and follow the installation steps carefully.

    7. If none of the above solutions resolve the problem, you may need to seek assistance from Oracle support or consult the Oracle community forums where Oracle experts can help troubleshoot specific installation issues.

    Remember to include relevant error messages or log file entries when seeking assistance as this will help pinpoint the root cause of the problem.

  11. User

    INFO: Start output from spawned process: INFO: ---------------------------------- INFO:

    INFO: /home/csadmin/app/csadmin/product/12.1.0/dbhome_2/bin/genclntsh

    INFO: /bin/ld: cannot find /usr/lib64/libpthread_nonshared.a: No such file or directory

    INFO: collect2: error: ld returned 1 exit status

    INFO: genclntsh: Failed to link libclntshcore.so.12.1

    INFO: make: *** [/home/csadmin/app/csadmin/product/12.1.0/dbhome_2/rdbms/lib/ins_rdbms.mk:56: client_sharedlib] Error 1

    INFO: End output from spawned process. INFO: ---------------------------------- INFO: Exception thrown from action: make Exception Name: MakefileException Exception String: Error in invoking target 'client_sharedlib' of makefile '/home/csadmin/app/csadmin/product/12.1.0/dbhome_2/rdbms/lib/ins_rdbms.mk'. See '/home/csadmin/app/oraInventory/logs/installActions2023-10-03_03-41-10PM.log' for details. Exception Severity: 1

  12. Assistant

    The error message indicates that the linker (ld) could not find the libpthread_nonshared.a file in the expected location during the make process of the Oracle Database 12c installation. This file is required for linking the libclntshcore.so.12.1 library.

    To resolve this issue, you can try the following steps:

    1. Verify that the libpthread_nonshared.a file is present or installed on your system. Use the following command to check its existence:

      ls /usr/lib64/libpthread_nonshared.a
      

      If the file does not exist, it might be missing or have a different name. In that case, you may need to reinstall or obtain the missing library.

    2. If the file is present but in a different location, you can create a symbolic link to it in the expected location. Use the ln command in the terminal to create the symbolic link:

      sudo ln -s /usr/lib64/<path_to_libpthread_nonshared.a> /usr/lib64/libpthread_nonshared.a
      

      Replace <path_to_libpthread_nonshared.a> with the actual path to the libpthread_nonshared.a file.

    3. Ensure that you have all the required dependencies and libraries installed as per the Oracle Database 12c installation requirements. Check the Oracle documentation for the dependency list and make sure all necessary packages are installed.

    4. Restart the installation process after performing the above steps and verify whether the issue has been resolved.

    If the problem persists, you may need to seek further assistance from Oracle support or consult the Oracle community forums for more specific guidance related to this error.

  13. User

    libpthread_nonshared install ubuntu

  14. Assistant

    The libpthread_nonshared.a library is typically included as part of the libc6-dev package on Ubuntu. To install it, you can follow these steps:

    1. Update the apt package list:

      sudo apt update
      
    2. Install the libc6-dev package:

      sudo apt install libc6-dev
      
    3. Verify the installation by checking the existence of libpthread_nonshared.a file:

      ls /usr/lib/x86_64-linux-gnu/libpthread_nonshared.a
      

      The path /usr/lib/x86_64-linux-gnu/ is the standard location for this library on Ubuntu 64-bit systems.

    If the file exists, you should now have libpthread_nonshared.a installed on your Ubuntu system. You can attempt to run the Oracle 12c installation again. However, if the file is still not found or the issue persists, you may need to explore additional troubleshooting steps or seek assistance from Oracle support or the Oracle community forums.

  15. User

    other solution

  16. Assistant

    If the installation error persists despite installing the libc6-dev package, there might be an issue with the library's location or the installation process. You can try the following alternative solution:

    1. Identify the location of the libpthread_nonshared.a library on your system. You can use the find command to search for it:

      sudo find / -name libpthread_nonshared.a 2>/dev/null
      

      This command searches the entire filesystem for the library and suppresses any permission denied errors.

    2. Once you find the location of the libpthread_nonshared.a file, create a symbolic link to it in the /usr/lib64/ directory (assuming a 64-bit system):

      sudo ln -s <path_to_libpthread_nonshared.a> /usr/lib64/libpthread_nonshared.a
      

      Replace <path_to_libpthread_nonshared.a> with the actual path to the library file.

    3. Make sure that the symbolic link has been created successfully by running:

      ls -l /usr/lib64/libpthread_nonshared.a
      

      Confirm that the symbolic link exists with the correct file permissions.

    4. Retry the Oracle Database 12c installation process to see if the error is resolved.

    If the issue still persists, it is recommended to consult the Oracle documentation, reach out to Oracle support, or seek assistance from the Oracle community forums for further troubleshooting steps specific to your environment.