Need to create package Oracle 11g client 32bit and 64bit in SCCM

TechUST 601 Reputation points
2023-07-19T20:25:32.5066667+00:00

Hi expert,

need to create package for "Oracle 11g client 32bit and 64bit" in SCCM please help. I have few steps for manual installation-

Step-01

  1. Copy the Oracle Installation package to the computer (download folder is a good option) where client needs to be installed.
  2. After the Client Installation is completed, make sure to remove the Software from the local server.
  3. Once installation is complete, copy the tnsnames.ora file from the 64-bit folder (C:\Oracle\11.2.0\client_64\network\admin) to the 32-bit folder C:\Oracle\11.2.0\client_1\ network\admin
  4. To start the install, double-click Oracle11_Client_32bit\Oracle 11g Client\setup.exe

Step-02 (To install Oracle ODAC 11g (if not completed - step 1)

  1. Copy the Oracle Installation package to the computer (download folder is a good option) where client needs to be installed.
  2. After the ODAC Installation is completed, make sure to remove the Software from the local server.
  3. Make Sure to Install the Oracle ODAC 
  4. on Same Drive, where the Oracle 11g client is installed.
  5. To start the install, double-click Oracle11_Client_32bit\Oracle 11g ODAC\ODTwithODAC112012\setup.exe
Microsoft Security Intune Configuration
Microsoft System Center Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. XinGuo-MSFT 22,226 Reputation points
    2023-07-20T07:58:24.5066667+00:00

    Hi,

    We could try to automate the steps mentioned in "Step-01" and "Step-02" using a batch file, you can follow the instructions below:

    Step 1: Create the Batch File

    Open a text editor (e.g., Notepad) and paste the following commands:

    
    @echo off
    
    set ORACLE_CLIENT_32BIT_SOURCE="C:\Path\to\Oracle11_Client_32bit"
    
    set ORACLE_CLIENT_64BIT_SOURCE="C:\Path\to\Oracle11_Client_64bit"
    
    set ORACLE_ODAC_SOURCE="C:\Path\to\Oracle11_Client_32bit\Oracle 11g ODAC\ODTwithODAC112012"
    
    set TNSNAMES_FILE_SOURCE="C:\Oracle\11.2.0\client_64\network\admin\tnsnames.ora"
    
    set TNSNAMES_FILE_DESTINATION="C:\Oracle\11.2.0\client_1\network\admin\tnsnames.ora"
    
    echo Step-01: Installing Oracle 11g Client 32-bit...
    
    start /wait "%ORACLE_CLIENT_32BIT_SOURCE%\setup.exe"
    
    echo Step-01: Oracle 11g Client 32-bit installation completed.
    
    echo Step-01: Copying tnsnames.ora from 64-bit folder to 32-bit folder...
    
    copy /Y "%TNSNAMES_FILE_SOURCE%" "%TNSNAMES_FILE_DESTINATION%"
    
    echo Step-01: tnsnames.ora file copied successfully.
    
    echo Step-01: Removing Oracle 11g Client 32-bit installation files...
    
    rd /S /Q "%ORACLE_CLIENT_32BIT_SOURCE%"
    
    echo Step-01: Oracle 11g Client 32-bit installation files removed.
    
    echo Step-02: Installing Oracle ODAC 11g...
    
    start /wait "%ORACLE_ODAC_SOURCE%\setup.exe"
    
    echo Step-02: Oracle ODAC 11g installation completed.
    
    echo Step-02: Removing Oracle ODAC 11g installation files...
    
    rd /S /Q "%ORACLE_ODAC_SOURCE%"
    
    echo Step-02: Oracle ODAC 11g installation files removed.
    
    echo All steps completed. Oracle 11g Client and ODAC are now installed.
    
    pause
    
    exit
    
    

    Step 2: Save the Batch File

    Save the file with a .bat extension, for example, install_oracle.bat.

    Step 3: Configure Paths

    Before running the batch file, replace the placeholder paths:

    • "C:\Path\to\Oracle11_Client_32bit": Replace this with the actual path to your Oracle 11g Client 32-bit installation files.
    • "C:\Path\to\Oracle11_Client_64bit": Replace this with the actual path to your Oracle 11g Client 64-bit installation files.
    • "C:\Path\to\Oracle11_Client_32bit\Oracle 11g ODAC\ODTwithODAC112012": Replace this with the actual path to your Oracle ODAC installation files.
    • "C:\Oracle\11.2.0\client_64\network\admin\tnsnames.ora": Replace this with the actual path to your tnsnames.ora file in the 64-bit folder.
    • "C:\Oracle\11.2.0\client_1\network\admin\tnsnames.ora": Replace this with the actual path to the destination folder where you want to copy the tnsnames.ora file.

    To deploy the batch file using SCCM, follow these steps:

    Step 1: Create the SCCM Package

    1. Open the SCCM console.
    2. Navigate to "Software Library" > "Application Management" > "Packages."
    3. Right-click on "Packages" and choose "Create Package."

    Step 2: Configure Package Settings

    1. Provide a name and optional comments for the package.
    2. Specify the source folder containing the batch file and any other required files (e.g., Oracle installation files, response files) as the "Source folder" for the package.
    3. Specify a destination folder on the distribution point as the "Destination folder."
    4. Under the "Data source" tab, select "This package contains source files" to copy the files to the distribution point.

    Step 3: Deploy the Package

    1. After creating the package, select it in the SCCM console.
    2. Right-click on the package and choose "Distribute Content."
    3. Select the distribution point(s) where you want to store the package content.
    4. Wait for the distribution process to complete.

    Step 4: Create a Program for the Batch File

    1. While the package is still selected in SCCM, click on the "Programs" tab.
    2. Click "Add" to create a new program.
    3. In the "Program Type" dropdown, select "Standard Program."
    4. Provide a name and optional comments for the program.
    5. For the "Command line" field, enter the following:
    install_oracle.bat
    
    1. Optionally, you can set the "Start in" field to the directory containing the batch file, or you can set it to the UNC path of the package content location (e.g., \\<server>\Packages\Oracle11gInstall).
    2. Under the "Environment" tab, check the "Run with administrative rights" box.
    3. Configure any other desired program settings, such as requirements, dependencies, and schedule.

    Step 5: Deploy the Program

    1. Select the program you created in the previous step.
    2. Right-click on the program and choose "Deploy."
    3. Select the target collection(s) of computers you want to deploy the package to.
    4. Configure any other deployment settings, such as deployment purpose, user experience, alerts, etc.
    5. Click "Deploy" to start the deployment.

    Once deployed, SCCM will execute the batch file on the target computers, automating the installation of Oracle 11g Client and Oracle ODAC as per the script.

    0 comments No comments

  2. TechUST 601 Reputation points
    2023-07-20T20:41:46.2233333+00:00

    Hi XinGuo-MSFT, Thank for replaying,

    I need to create for package for 32 and 64 bit but i have package in two folders i am not sure where should i copy batch file which you have shared also do i need to create two packages for 32 and 64 bit or can be packaged with single deployment.

    as per screenshot please suggest.

    Pic1.jpg

    Pic2.jpg

    0 comments No comments

  3. XinGuo-MSFT 22,226 Reputation points
    2023-07-21T09:18:14.35+00:00

    A single deployment is ok, and all manual operations are converted to bat script implementations.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.