After exploration and practice, I wrote my solution below:
Note:
The version of my Oracle client is Oracle 9i. It cannot be installed by default when installing the client. You must customize it. Then select all oledb-related content and install it,
The following shows an implementation method of Oracle. Two steps are required:
1. Create sequence create [or replace] sequence sequence_identity start with initial seed increment by step maxvalue upper bound [nomaxvalue] nocycle [empty]
2. Create
Delete a user using the Oracle command line:
CopyCode The Code is as follows: connect/As sysdba;
Shutdown abort;
Startup;
Drop user user1 cascade;
Exit
Oracle command line User Creation: copy Code the code is as follows: create user user1
Write a circular deletion process.
Create or replace procedure delbigtab (p_tablename in varchar2, p_condition in varchar2, p_count in varchar2)
As
Pragma autonomous_transaction;
N_delete number: = 0;
Begin
While 1 = 1 Loop
Execute immediate
The update in an oracle SQL statement can be used with sequence to update the continuous numbers of values of a field without having to traverse and update database records one by one using a cursor. For example, update Sample Set ID =
Insert view conditions:
1. if a view is generated based on a basic table, this is called a non-join view. All non-join views can be updated, that is, they can be performed on the view, insert, update, delete operation.
2. for a connection view,
Today I found a good website that displays Oracle syntax. If there are too many contents, we will not extract them one by one. Record them here for your convenience.
Http://www.ss64.com/ora/
The directory is as follows:
An A-Z index of Oracle
Single-record functions in SQL
1. ASCII
Returns the decimal number corresponding to the specified character;
SQL> select ASCII ('A') A, ASCII ('A') A, ASCII ('0') zero, ASCII ('') space from dual;
A A zero space
------------------------------------
Configuration environment:
1. Data Base: Oracle 8i R2 (8.1.7) for NT Enterprise Edition
2. installation path: C: Oracle
Implementation Method:
1. D:> set nls_lang = american_america.usacii7
Or
D:> set nls_lang = american_america.we8iso8859p1
D:> set
Machine:
Select instance_name from V $ instance;
Select name from V $ database;
Select name from V $ datafile;
Log query mode:
Archive log list;
Shutdown immediate;
Startup Mount;
Change the log archive mode:
Alter database archivelog;
Alter
First, create a stored procedure get_clob:
T_name: name of the table to be queried; f_name: name of the field to be queried; u_id: Primary Key of the table, query condition; l_pos: Start position of the truncation; l_amount: truncation
For example: 2000-1-1 ==> 2000-01-01, 2000-01-1 ==> 2000-01-01, 2000-1-01 ==> 2000-01-01
I used to write a function/procedure script and a large number of if else scripts...
This time, we accidentally discovered that Oracle10g already supports the
1. Basic StructureCreate OR REPLACE PROCEDURE(Parameter 1 in number,Parameter 2 IN NUMBER) ISVariable 1 INTEGER: = 0;Variable 2 DATE;BEGINEND stored procedure name2. select INTO STATEMENTSave the select query result to a variable. You can store
Recently, many people in the group have discussed oracle Security Issues. Today I have found some materials to learn more.
Obtain the attributes of the current Oracle SESSION (useful for determining the SQL Injection environment)
The SYS_CONTEXT
//************************************** *********************************// Function name: of_zy_yzfy for n_medicare_minihis// Function Description: Submit the doctor's advice when the doctor's advice is entered// Function parameters:// 1.
Conversion of date and time in c shell perl php: seconds and human readable date scalar localtime and seconds since '00: 00: 00 1970-01-01 UTC'
Scalar localtime 26-byte string and seconds since '00: 00: 00 1970-01-01 UTC'
(The number of seconds
Oracle databases are favored by more and more enterprises for their high reliability, security, and compatibility. Many database administrators are concerned about how to maintain excellent performance of Oracle databases. Based on my experience, we
Recently, due to insufficient hard disk space in the unit database, I checked many articles and tested them. I learned some experiences for your reference.
First, I saw an article on the internet, how to Shrink Undo tablespaces and release space
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service