Set the primary key and auto-increment the primary key in the Oracle table. Because Oracle cannot directly set the auto-increment number, you can only write sequence and add a trigger on your own;
After searching for a while on the network, I found
To be honest, I don't know much about the syntax of Oracle databases. I think there are some things that we can use as long as we can. Let's talk about some minor problems encountered when I learned about it recently. I have used its visualization
Dbms_random.value in Oracle generates a number with a decimal part. to limit the range and obtain an integer, you should:
Floor (dbms_randm.value * 200 + 1 );
Select floor (12.23) from dual;Floor (12.23)------------12
Select round (2.34)
It is relatively simple to configure ORACLE data sources in WebSphere
1. Configure JAAS-J2C authentication, that is, the database user name and password.
2. Configuration driver, that is, JDBC providesProgram, You only need to specify the class
SQL> set linesize 400sql> set pagesize 400sql> select * From user_tab_privs where grantee = 'xiaye '; grantee owner table_name grantor privilege gra HIE has been created before --- xiaye sys ships sys update no noxiaye sys ships sys select no
There is a special logical volume in Aix called "Page feed space ". The traditional UNIX name of the paging space is "swap zone", and Aix manages it as a logical volume.
When the amount of available memory in the system is reduced to a certain
Author: Yi Wenjun
Email: yiwenjun@126.com
First, you must enable the Oracle listener and service.
Open the ODBC data source configuration interface, select system DSN, add, and select Oracle driverProgram
The key is the following parameter
I. Table Restoration
If the purge permanent deletion option is not used for accidentally deleted tables, it is expected to be restored from the flash back area. The general steps are as follows:
1. query the deleted table from flash back.
Login
> Sqlplus/As sysdba
// Create a tablespaceCreate tablespace tbspace_dataLoggingDatafile '/u01/Oracle/tbspace/tbspace_data01.dbf'Size 32 mAutoextend onNext 32 m maxsize 2048 mExtent management local;
// Create a user and specify the
Process related:
1. Find the SID of the current session, serial #
Select Sid, serial #
From v $ session
Where audsid = sys_context (userenv, sessionid );
2. query the OS process ID of the session.
Select P. spid "OS thread", B. Name "name-user",
Background: InWindows2003ServerUpperInstallNowOracle9.2.0.1.0. We plan to upgrade it to version 9.2.0.8 with the latest security patch.2008.1. Upgrade Oracle (administrator user permissions)(1) download the upgrade package from Metalink. The patch
Single-record functions in SQL
1. ASCIIReturns 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------------------------------------65 97
AsOracle DatabaseOne of the basic knowledge,Oracle Database Management scriptThe importance of Oracle Database management scripts and their applications cannot be ignored.
The data dictionary in Oracle is a very important part of the database and
/* Create a tablespaceCreate a tablespace tbs_01 in 1 MB local management and specify the data file D:/oradata/tbs_01.dbf;View the created tablespace information.*/
Create tablespace tbs_01 datafile 'd:/oradata/tbs_01.dbf 'size 1 m extent management
--- Create a student table ---Create Table student (Stu_no number (10) Not null,Stu_name varchar2 (20) not null,Stu_age number (10) Not null,Constraint pk_student primary key (stu_no) -- set as primary key);--- Insert data ---Insert into
/*Create a new tableUse the Course table as the template to create a new table course_new, which includes all records of the Course table.*/-- Delete an existing tableDrop table course_new;
Create Table course_new as select * from course;
Select *
1. What isOracleCharacter Set
The Oracle character set is a collection of symbols for the interpretation of byte data. It can be divided into different sizes and have an inclusive relationship. Oracle supports the national language architecture,
Oracle Database Table recovery mode This method restores data backed up in Table mode.
A. Restore all the backup dataTo restore data from a local file, run the following command:IMP icdmain/ICD fromuser = icdmain touser = icdmain rows = y indexes =
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