Install Oracle Database 19c on linux

Hello everyone today I am going to install oracle 19c on Linux RedHat 8.6. also in this video, I will talk about x11 forwarding and its problem, and install oracle 19c on the new version of RedHat

How to install Oracle 19c On Linux , X11 Forwarding problem

Prerequisites:

  1. Hardware and Software Requirements: Verify that your system meets the hardware and software requirements specified in Oracle’s documentation.
  2. Linux User and Groups:
  • Create a dba group:

bash

sudo groupadd dba

  • Create the oracle user and add them to the dba group:

bash

sudo useradd -g dba oracle

  • Set a password for the oracle user:

bash

sudo passwd oracle

3. Kernel Parameters and Resource Limits: Modify the kernel parameters and resource limits as recommended by Oracle. Edit the /etc/sysctl.conf file and add or update these lines:

fs.file-max = 6815744

kernel.sem = 250 32000 100 128

kernel.shmmni = 4096

kernel.shmall = 1073741824

kernel.shmmax = 4398046511104

kernel.panic_on_oops = 1

net.core.rmem_default = 262144

net.core.rmem_max = 4194304

net.core.wmem_default = 262144

net.core.wmem_max = 1048576

net.ipv4.conf.all.rp_filter = 2

net.ipv4.conf.default.rp_filter = 2

Then, apply the changes:

sudo sysctl -p

Edit the /etc/security/limits.conf file and add the following lines at the end of the file:

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536

Installation:

  1. Download Oracle Database 19c: Visit Oracle’s website to download the Oracle Database 19c installation files for Linux.
  2. Extract Installation Files:
    • Unzip the downloaded files:

unzip oracle-database-19c-*.zip

Installation:

  1. Download Oracle Database 19c: Visit Oracle’s website to download the Oracle Database 19c installation files for Linux.
  2. Extract Installation Files:
    • Unzip the downloaded files:

codeunzip oracle-database-19c-*.zip

3. Run Oracle Universal Installer (OUI):

  • Navigate to the database directory where you extracted the files.
  • Run the Oracle Universal Installer as the oracle user:

bash

./runInstaller

4. Oracle Installation Steps:

  • Follow the graphical prompts in the Oracle Universal Installer:
    • Choose “Install database software only.”
    • Specify the Oracle Base and Software Location.
    • Select the edition and options you want to install.
    • Provide the Oracle Inventory Directory (usually /u01/app/oraInventory).
    • Follow the rest of the installation wizard, including setting the Oracle Home user password.

5. Execute Root Scripts:

  • After the installation is complete, the installer will prompt you to run root scripts. Open a new terminal as the root user and execute the scripts as instructed.

6. Create and Configure a Database:

  • You can use the Database Configuration Assistant (DBCA) or command-line tools like SQL*Plus to create and configure an Oracle Database instance.

7. Start and Stop the Database:

  • Start the Oracle Database with SQL*Plus or by using the provided scripts like dbstart:

sqlplus / as sysdba
SQL> startup

  • Stop the database with SQL*Plus or dbshut.

8. Testing:

  • Verify that the Oracle Database is running correctly by connecting to it, creating tables, and executing queries.

Remember that this is a simplified overview, and you should always refer to Oracle’s official documentation and installation guides for the most accurate and up-to-date instructions. Oracle installations can be complex, and it’s important to ensure that your system meets all prerequisites and requirements. Consider involving an experienced Oracle DBA if you are unfamiliar with the process.

vSphere 8 , ESXi 8.0 Installation and Configuration , Install VMware ESXi 8.0

1. Prepare for Installation:

  • Download the VMware ESXi 8.0 ISO from the VMware website.
  • Create a bootable USB drive using software like Rufus (for Windows) or Etcher (for macOS and Linux).
  • Insert the USB drive into the server where you want to install ESXi.

2. Boot from the Installation Media:

  • Power on the server and access the BIOS or UEFI firmware settings.
  • Configure the boot order to boot from the USB drive first.
  • Save the changes and exit the BIOS/UEFI settings.

3. Install VMware ESXi:

  • The ESXi installer should load. Press Enter to begin the installation process.
  • Read and accept the End User License Agreement (EULA) by pressing F11.
  • Select the disk or storage device where you want to install ESXi and press Enter.
  • Select the keyboard layout and press Enter.
  • Enter a root password for the ESXi host and press Enter.
  • Press F11 to confirm the installation.
  • Wait for the installation to complete. Once done, remove the installation media and reboot the server.

4. Configure Networking:

  • After rebooting, the ESXi host will boot up, and you’ll be prompted to configure networking.
  • Use the arrow keys to navigate to “Configure Management Network” and press Enter.
  • Set the IP address, subnet mask, default gateway, and DNS servers for the ESXi host.

5. Access ESXi Host via Web Client:

  • Open a web browser on a computer connected to the same network as the ESXi host.
  • Enter the IP address of the ESXi host in the address bar.
  • Log in using the username “root” and the password you set during installation.

6. (Optional) Configure Additional Settings:

  • In the vSphere Client, you can configure additional settings such as adding a license key, configuring storage, creating virtual machines, and managing networking.

7. Install VMware Tools (Optional):

  • In the vSphere Client, right-click on the virtual machine and select “Guest OS” > “Install VMware Tools” to install the VMware Tools package on the virtual machine for better performance and management.

By following these steps, you can install and configure VMware ESXi 8.0 on a server and start using it to host virtual machines.

Reset Vcenter SSO administrator@vsphere.local Password

1. Access the vSphere Authentication Proxy:

  • Log in to the vCenter Server using the vSphere Client with an account that has administrative privileges.
  • Navigate to the “Administration” section in the vSphere Client.
  • Under “Single Sign-On,” click on “Configuration.”

2. Reset the Password:

  • In the “Configuration” tab, click on “System Configuration.”
  • Click on the “Nodes” tab and select the vCenter Server node.
  • Click on the “Manage” tab and select “Settings.”
  • Under “Settings,” click on “Reset Password” next to “Single Sign-On Administrator Password.”
  • Enter and confirm the new password for the administrator@vsphere.local account.
  • Click “OK” to reset the password.

3. Verify the Password Reset:

  • Log out of the vSphere Client and log back in using the administrator@vsphere.local account and the new password to verify that the password reset was successful.

4. (Optional) Change the Password Using the CLI:

  • If you have SSH access to the vCenter Server, you can also use the vdcadmintool command-line utility to reset the password.
  • SSH into the vCenter Server and run the following command to access the utility:

/usr/lib/vmware-vmdir/bin/vdcadmintool

  • Select option 3 for “Reset account password” and follow the prompts to reset the password for the administrator@vsphere.local account.

By following these steps, you can reset the VMware vCenter Single Sign-On (SSO) administrator@vsphere.local password using the vSphere Client or the vdcadmintool command-line utility.

Unlock and Reset Vcenter root Password

1. Unlock the root Account:

  • Open a web browser and navigate to the VAMI interface of your vCenter Server Appliance. The URL is usually https://<vCenter_IP>:5480.
  • Log in with your root credentials.
  • Go to the “Access” tab and click on “Edit” next to “User Accounts.”
  • Select the “root” account and click on “Unlock Account.”

2. Reset the root Password:

  • In the same “User Accounts” section of the “Access” tab, click on “Edit.”
  • Select the “root” account and enter a new password in the “New Password” and “Confirm Password” fields.
  • Click on “Save Settings” to apply the new password.

3. Verify the Changes:

  • Log out of the VAMI interface and log back in with the new root password to ensure it’s working correctly.
  • You can also log in to the vSphere Client using the root account to verify access.

4. (Optional) Reset Password Using vSphere Client:

  • If you have access to the vSphere Client and vCenter Server is connected, you can reset the root password from the vSphere Client.
  • Log in to the vSphere Client with administrator credentials.
  • Navigate to the vCenter Server in the inventory.
  • Go to the “Configure” tab and select “Settings” under “Access.”
  • Click on “Edit” next to “Authentication” and then “Edit” next to “Password.”
  • Enter the new root password and click “OK” to save the changes.

5. Restart vCenter Services (if needed):

  • If you encounter any issues after changing the root password, you may need to restart the vCenter services.
  • You can do this from the VAMI interface by going to the “Services” tab and clicking on “Restart.”

After completing these steps, the root password for your vCenter Server should be successfully reset, and you should be able to log in with the new password.

Install Red Hat Linux and Subscription Manager

1. Install Red Hat Enterprise Linux:

  • Obtain the RHEL installation ISO from the Red Hat Customer Portal.
  • Create a bootable USB drive or DVD from the ISO.
  • Boot the system from the USB drive or DVD.
  • Follow the on-screen instructions to install RHEL, including configuring disk partitions, selecting software packages, and setting up user accounts.

2. Register and Enable Red Hat Subscription:

  • After installing RHEL, you need to register your system with Red Hat to enable access to software updates and support.
  • Open a terminal and run the following command to register your system:

subscription-manager register

  • Enter your Red Hat account credentials when prompted.

3. Attach a Subscription:

  • After registering, attach a subscription to your system. You can view available subscriptions with:

subscription-manager list –available

  • Attach a subscription with:

subscription-manager attach –pool=POOL_ID

  • Replace POOL_ID with the ID of the subscription you want to attach.

4. Enable Repositories:

  • Enable the necessary repositories for software updates and packages:

subscription-manager repos –enable=rhel-8-for-x86_64-baseos-rpms –enable=rhel-8-for-x86_64-appstream-rpms

  • Adjust the repository names according to your RHEL version and architecture.

5. Check Subscription Status:

  • Verify the subscription status of your system:

subscription-manager status

  • Ensure that the status is “Current” to indicate that the system is subscribed and can receive updates.

6. Update Your System:

  • Update the system to install any available updates:

yum update

7. Configure Automatic Updates (Optional):

  • You can configure Subscription Manager to automatically apply updates:

subscription-manager config –rhsm.auto_enable_yum_plugins=1

8. Verify Installation:

  • Verify that your system is registered and receiving updates:

yum repolist

  • This command will show the repositories enabled and the packages available for installation.

By following these steps, you can install Red Hat Enterprise Linux and configure Subscription Manager to manage software updates and subscriptions for your system.

Deploy BgInfo by Group Policy

1. Download and Install BgInfo:

  • Download BgInfo from the official Microsoft Sysinternals website.
  • Extract the downloaded ZIP file and copy the BgInfo.exe and BgInfo64.exe files to a network share that is accessible to all client machines.

2. Create a Configuration File:

  • Launch BgInfo on a test machine and configure the desired settings, such as the information to display and the background color.
  • Save the configuration as a .bgi file to the same network share where you copied the BgInfo executables.

3. Create a Group Policy Object (GPO):

  • Open the Group Policy Management Console (GPMC) on a domain controller or a machine with the Remote Server Administration Tools (RSAT) installed.
  • Right-click on the desired Organizational Unit (OU) or the domain name and select “Create a GPO in this domain, and Link it here.”
  • Give the GPO a descriptive name, such as “Deploy BgInfo.”

4. Edit the Group Policy Object:

  • Right-click on the newly created GPO and select “Edit.”
  • Navigate to “Computer Configuration” > “Policies” > “Windows Settings” > “Scripts (Startup/Shutdown).”
  • Double-click on “Startup” in the right pane.

5. Add a Startup Script to Run BgInfo:

  • Click on the “Add” button in the “Startup Properties” window.
  • In the “Script Name” field, enter the UNC path to the BgInfo executable (e.g., \\server\share\BgInfo.exe).
  • In the “Script Parameters” field, enter the path to the configuration file (e.g., \\server\share\config.bgi).
  • Click “OK” to save the script.

6. Copy BgInfo Files to Client Machines:

  • Ensure that the BgInfo executable (BgInfo.exe or BgInfo64.exe) and the configuration file (config.bgi) are accessible from the network share specified in the startup script.

7. Apply the Group Policy:

  • Close the Group Policy Management Editor and link the GPO to the desired OU or domain.
  • Run gpupdate /force on client machines or wait for Group Policy to apply automatically.

8. Verify Deployment:

  • Restart a client machine (or run gpupdate /force) to apply the Group Policy.
  • The system information specified in the BgInfo configuration file should be displayed on the desktop background.

By following these steps, you can deploy BgInfo using Group Policy to automatically display system information on the desktop background of Windows machines in your domain.

Capture Customized Windows Image by WDS

Step 1: Prepare the Reference Computer
Install Windows on a reference computer.
Customize the Windows installation as needed (install applications, configure settings, etc.).
Step 2: Sysprep the Reference Computer
Open a command prompt with administrative privileges.
Navigate to the Sysprep folder (usually located at C:\Windows\System32\Sysprep).
Run the Sysprep tool with the following options:
bash
sysprep.exe /generalize /oobe /shutdown /unattend:unattend.xml
  • /generalize: Prepares the Windows installation to be imaged.
  • /oobe: Configures the computer to boot to Windows Welcome upon the next restart.
  • /shutdown: Shuts down the computer after Sysprep completes.
  • /unattend:unattend.xml: Specifies an unattend.xml file to automate the Sysprep process. This file is optional but recommended for consistency.

Step 3: Boot the Reference Computer into Windows PE

  • Insert a bootable media (USB drive or DVD) containing Windows PE.
  • Boot the reference computer from the bootable media.

Step 4: Capture the Image

  • In Windows PE, open a command prompt.
  • Use the WDSUTIL command to capture the image. For example:

mathematica
WDSUTIL /Verbose /Progress /Capture-Image /Image:”CustomImage” /Name:”Custom Image” /Description:”Customized Windows Image” /CaptureDir:”D:\Captures”

  • /Image:"CustomImage": Specifies the name for the captured image.
  • /Name:"Custom Image": Specifies a friendly name for the captured image.
  • /Description:"Customized Windows Image": Provides a description for the captured image.
  • /CaptureDir:"D:\Captures": Specifies the directory to store the captured image.

Step 5: Upload the Captured Image to WDS Server

  • After capturing the image, navigate to the WDS server.
  • Use the WDS MMC snap-in or the WDSUTIL command to upload the captured image to the server.

Step 6: Create an Install Image

  • In the WDS MMC snap-in, right-click on “Install Images” and select “Add Install Image.”
  • Specify the location of the captured image file and follow the wizard to create the install image.

Step 7: Deploy the Image

  • Boot a client computer from the network using PXE boot.
  • Select the customized image from the WDS server for deployment.
  • Follow the on-screen instructions to deploy the image to the client computer.

Make sure to test the deployment thoroughly before deploying to production environments.

Install Windows OS from Network | Install And Configure Windows Deployment Service (WDS)

1. Install Windows Deployment Services Role:

  • Open Server Manager on a Windows Server machine.
  • Click on “Add roles and features.”
  • Select “Windows Deployment Services” as the role to install.
  • Follow the wizard to complete the installation.

2. Configure Windows Deployment Services:

  • After installing the role, open the Windows Deployment Services console from the Server Manager.
  • Right-click on the server name and select “Configure Server.”
  • Follow the wizard to configure the server.
  • Choose the location to store the images (you can use the default location).
  • Select “Integrated with Active Directory” if you want to use Active Directory Domain Services (AD DS) to authorize clients and manage computer accounts.
  • Specify the DHCP server settings. You can choose to configure DHCP options 60, 66, and 67, or you can manually configure DHCP options if you’re using a separate DHCP server.

3. Add Boot and Install Images:

  • In the Windows Deployment Services console, expand the server name.
  • Right-click on “Boot Images” and select “Add Boot Image.”
  • Browse to the location of the Windows installation files and select the boot image (boot.wim) file.
  • Repeat the process to add the install image (install.wim) file for the Windows version you want to deploy.

4. Configure DHCP Options (if not done in step 2):

  • If you didn’t configure DHCP options during the WDS configuration, you’ll need to do it manually on your DHCP server.
  • Configure option 60 to PXEClient.
  • Configure option 66 to the IP address of the WDS server.
  • Configure option 67 to boot\x64\pxeboot.n12 for BIOS-based systems or boot\x64\wdsmgfw.efi for UEFI-based systems.

5. PXE Boot and Install Windows:

  • Boot the client computer from the network (PXE boot). This usually involves pressing a key (e.g., F12) during startup to access the boot menu and selecting the network boot option.
  • The client will contact the WDS server and load the boot image.
  • Follow the on-screen instructions to select the install image and complete the Windows installation.

6. Monitor Deployment:

  • Use the Windows Deployment Services console to monitor the deployment process and view the status of client installations.

By following these steps, you can set up Windows Deployment Services to deploy Windows operating systems over the network, making it easier to manage and deploy Windows installations across multiple computers.

Install And Configure DHCP Server Cluster

1. Preparing the Environment:

  • Ensure that both servers meet the hardware and software requirements for Windows Server and DHCP.
  • Assign static IP addresses to each server.
  • Ensure that DNS is properly configured and that both servers can resolve each other’s names.

2. Installing the DHCP Server Role:

  • Open Server Manager on both servers.
  • Select “Add roles and features” and proceed with the installation wizard.
  • Select “DHCP Server” as the role to install.
  • Complete the DHCP Server installation wizard.

3. Configuring DHCP Failover:

  • Open DHCP Manager on one of the servers.
  • Right-click on the DHCP server name and select “Configure Failover.”
  • Follow the wizard to configure DHCP failover.
  • Choose the partner server, configure the shared secret, and set the mode (Load Balance or Hot Standby) and relationship (Primary or Secondary).

4. Installing the Failover Clustering Feature:

  • Open Server Manager on both servers.
  • Select “Add roles and features” and proceed with the installation wizard.
  • Select “Failover Clustering” as the feature to install.

5. Creating the Cluster:

  • Open Failover Cluster Manager on one of the servers.
  • Click on “Create Cluster” and follow the wizard.
  • Add both servers to the cluster.
  • Configure cluster settings such as the cluster name and IP address.

6. Configuring DHCP Server Role in the Cluster:

  • In Failover Cluster Manager, right-click on “Services and Applications” and select “Configure a Service or Application.”
  • Select “DHCP Server” as the service to configure.
  • Follow the wizard to add the DHCP server role to the cluster.

7. Testing Failover:

  • Perform a failover test to ensure that the DHCP server cluster functions correctly.
  • Use the Failover Cluster Manager to initiate a failover and verify that DHCP services remain available during the failover process.

8. Monitoring and Maintenance:

  • Regularly monitor the DHCP server cluster using Failover Cluster Manager to ensure it remains healthy.
  • Perform regular maintenance tasks, such as applying updates and patches, to keep the cluster secure and up-to-date.

Note: Ensure that you have sufficient IP address ranges and leases configured to handle the increased demand that comes with clustering. Additionally, testing failover in a controlled environment is crucial to ensure proper functioning in a production environment.

Install And Configuration Active Directory Cluster

1. Preparing the Environment:

  • Ensure that both servers meet the hardware and software requirements for Windows Server and Active Directory.
  • Assign static IP addresses to each server.
  • Ensure that DNS is properly configured and that both servers can resolve each other’s names.

2. Installing Active Directory Domain Services (AD DS):

  • Open Server Manager on both servers.
  • Select “Add roles and features” and proceed with the installation wizard.
  • Select “Active Directory Domain Services” as the role to install.
  • Complete the AD DS installation wizard, which will include promoting the server to a domain controller.

3. Configuring DNS:

  • Ensure that DNS is installed on both servers.
  • Configure DNS zones to replicate across all DNS servers in the domain.

4. Installing the Failover Clustering Feature:

  • Open Server Manager on both servers.
  • Select “Add roles and features” and proceed with the installation wizard.
  • Select “Failover Clustering” as the feature to install.

5. Creating the Cluster:

  • Open Failover Cluster Manager on one of the servers.
  • Click on “Create Cluster” and follow the wizard.
  • Add both servers to the cluster.
  • Configure cluster settings such as the cluster name and IP address.

6. Configuring Active Directory as a Clustered Service:

  • In Failover Cluster Manager, right-click on “Services and Applications” and select “Configure a Service or Application.”
  • Select “Active Directory Domain Services” as the service to configure.
  • Follow the wizard to configure AD DS as a clustered service.

7. Configuring Quorum:

  • Configure a quorum witness to avoid split-brain scenarios. This can be done using a disk witness, file share witness, or cloud witness, depending on your environment and requirements.

8. Testing Failover:

  • Perform a failover test to ensure that the cluster functions correctly.
  • Use the Failover Cluster Manager to initiate a failover and verify that AD services remain available during the failover process.

9. Monitoring and Maintenance:

  • Regularly monitor the cluster using Failover Cluster Manager to ensure it remains healthy.
  • Perform regular maintenance tasks, such as applying updates and patches, to keep the cluster secure and up-to-date.

Following these steps will help you set up an Active Directory cluster for high availability and fault tolerance in your environment.