Saturday, September 05, 2020

Basics of ASP.NET

 Basics of ASP.NET


Click here to download the file


=================


RDBMS PL/SQL Basic Programs

 

RDBMS Programs

1)  Program to print Hello World.

SET SERVEROUTPUT ON

BEGIN 

    DBMS_OUTPUT.PUT_LINE('Hello World');

END;

/

Output

Hello World

 

PL/SQL procedure successfully completed.

2)  Program to demonstrate the use of variable.

SET serveroutput ON

DECLARE

     name varchar(40);

BEGIN

     name := 'Chirag Mewada';

     DBMS_OUTPUT.PUT_LINE('Hello ' || name);

END;

/

Output

Hello Chirag Mewada

 

PL/SQL procedure successfully completed.

3)  Program to demonstrate the use of %TYPE.

SET serveroutput ON

DECLARE

     name Worker.FIRST_NAME%TYPE;

BEGIN

     SELECT FIRST_NAME INTO name

      FROM Worker

      WHERE WORKER_ID = 002;

     DBMS_OUTPUT.PUT_LINE('Hello ' || name);

END;

/

Output

Hello Chirag Mewada

 

PL/SQL procedure successfully completed.

Friday, August 28, 2020

RDBMS Using Notepad++ to Execute Oracle SQL

 

Using Notepad++ to Execute Oracle SQL

Here are the steps:

  1. Launch Notepad++
  2. Main menu -> Plugins -> Plugin Manager -> Show Plugin Manager
  3. Available Tab, Find and check NppExec plugin   zzz2.png
  4. Press Install button to download & install plugin – restarts Notepad++
  5. Open a SQL script
  6. Press F6 key (NppExec’s default keyboard mapping for “Execute Statement”)
  7. Enter the following macro script into the Execute pop-up

set ORA_USER=bert

set ORA_PASS=bert1234

set ORA_SID= ORCL

npp_save

cmd /c copy /y "$(CURRENT_DIRECTORY)\$(FILE_NAME)" "$(SYS.TEMP)\$(FILE_NAME)" >nul 2>&1

cmd /c echo. >> "$(SYS.TEMP)\$(FILE_NAME)"

cmd /c echo exit >> "$(SYS.TEMP)\$(FILE_NAME)"

sqlplus -l $(ORA_USER)/$(ORA_PASS)@$(ORA_SID) @"$(SYS.TEMP)\$(FILE_NAME)"


zzz3.png


  1. Change the first three variables for your database, username and password
  2. Press the OK button

RDBMS Install Oracle Database Express Edition in Windows 10

 

Oracle Database Express Edition




After downloading the Oracle Database XE installation executable, setup.exe, double-click it.
In the Oracle Database 11g Express Edition - Install Wizard welcome window, click Next.
Description of welcome1.gif follows

In the License Agreement window, select I accept the terms in the license agreement and then click Next.
In the Choose Destination Location window, either accept the default or click Browse to select a different installation directory. (Do not select a directory that has spaces in its name.) Then click Next.
Description of destination.gif follows

If you are prompted for a port number, then specify one.

The following port numbers are the default values:

  • 1521: Oracle database listener

  • 2030: Oracle Services for Microsoft Transaction Server

  • 8080: HTTP port for the Oracle Database XE graphical user interface

If these port numbers are not currently used, then the installation uses them automatically without prompting you. If they are in use, then you will be prompted to enter an available port number.

In the Specify Database Passwords window, enter and confirm the password to use for the SYS and SYSTEM database accounts. Then click Next.

Description of password.gif follows

In the Summary window, review the installation settings, and if you are satisfied, click Install. Otherwise, click Back and modify the settings as necessary.

Description of summary.gif follows

Enabling the Control Panel Services for .NET Stored Procedures and Oracle Services for Microsoft Transaction Server

  1. Select Start, then Control Panel.

  2. In the Control Panel, double-click Administrative Tools, and then Services.

  3. Right-click each of the following services, and then select Properties from the menu. Then set the start-up type of the service to Automatic.

    • OracleXEClrAgnt (for .NET stored procedures)

    • OracleMTSRecoveryService (Oracle Services for Microsoft Transaction Server)

  4. Click OK.

  5. Start each service by right-clicking its name and selecting Start from the menu.