📄 db7setup.html
字号:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Author" content="Reghu">
<meta name="GENERATOR" content="Mozilla/4.51 [en] (WinNT; I) [Netscape]">
<title>Databse setup</title>
</head>
<body>
<b><u><font face="Arial,Helvetica"><font color="#000099"><font size=+2>INSTRUCTIONS
FOR SETTING UP DATABASE TABLES REQUIRED BY THE OLEDB SAMPLES</font></font></font></u></b>
<p>This file explains the procedure to setup the tables used in the
OraOLEDB samples.
<p><b><u><font color="#000099"><font size=+1>To Create a New Database User</font></font></u></b>
<p><b>Step 1</b>. Connect to SQL*plus as a user with DBA priviliges eg.
system/manager@<connect string>
<p><b>Step 2</b>. Execute
<br> <i>syntax</i>:
SQL> CREATE USER <username> IDENTIFIED BY <password> DEFAULT TABLESPACE
<tablespace name>;
<br> <i>eg</i>.
SQL> CREATE USER Oraole IDENTIFIED BY Oraole DEFAULT TABLESPACE users;
<p><b>Step 3</b>. Grant privileges to the user created
<br> <i>syntax:
</i>SQL> GRANT CONNECT, RESOURCE TO <username>;
<br> <i>eg: </i>
SQL> GRANT CONNECT, RESOURCE TO oraole;
<p><b><u><font color="#000099"><font size=+1>To Create Database Tables
Required for the OLEDB Samples</font></font></u></b>
<p><b>Step 1. </b>Connect to SQL*Plus using <username>/<password>@<connect
string>
<br>
eg. Oraole/Oraole@mydatabase
<p><b>Step 2.</b> Execute SQL> @<path>Ora7OLEDBScript.sql
<br>
This script should create the following tables with primary keys:
<br>
a) Supplier
<br>
b) Orders
<br>
c) Product_Information
<p> Foreign
key ORDERS_SUPPLIER_FK for Orders to Supplier table is also created.
<br>
The data also gets inserted in the above tables.
<p><b>Step 3</b>. To verify whether tables have been successfully created.
<br>
execute SQL> SELECT * FROM tab;
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -