1. Create a data table
Create Table T (Id integer,Name varchar2 (50))
2. Add data
Insert into T values (1, 'zhao ')Insert into T values (2, 'Qian ')Insert into T values (3, 'sun ')Insert into T values (4, 'lil ')
Iii. Case usage: assign a new
1. Force delete a user
Sometimes, you cannot delete connected oracle users directly. You need to force kill session information:
Command:
Select Sid, serial #, username from V $ session;
Used to view the user's session information. If we
Windows XP, database Oracle 10.2.0. 1There is no backup, which is basically installed by default. It does not seem to be in the archive mode.
Symptoms: sqlplus only sysdba users can go in, other users will report: ora-01033: Oracle is initializing
View the default tablespace of the current user
SQL> select username, default_tablespace from user_users;
View the role of the current userSQL> select * From user_role_privs;
View the system and table-level permissions of the current userSQL>
First look at SQL:
UpdateCompany_info FSetF. belong_dept=Substr (F. orgid, instr (F. orgid,',',-1,1)+ 1, Length (F. orgid ))
Where:
Instr (F. orgid, '',-) in F. orgid indicates the string to be matched; ',' indicates the matching character;-1
I used it before for data migration. I found it a little strange when I flipped through the SQL statements today, and it was basically easy to use. Oracle10g the test table and fields (Omitted) are created under Scott by default)
Oracle Restoration Based on Time points
What precision can Oracle restore Based on Time points be accurate?This is a concern. The following tests are used to illustrate the problem. 1. First, make a cold backup2. Create Test DataD: \>
1. Modify the Oracle system configuration file and change n to Y:
Sudo VI/etc/oratab
Orcl:/Oracle/ORACLE_HOME: YBlogs:/Oracle/ORACLE_HOME: Y
Note:
/Etc/oratab format: Sid: ORACLE_HOME: AutoSet n to Y (uppercase). Only in this way can
Modify the database character set to zhs16gbk.View server character setsSQL> select * from V $ nls_parametersModify:$ Sqlplus/nologSQL> Conn/As sysdba restart ;If the database server has been started, run shutdown immediateTo shut down the database
Today, ibatis3 is used to insert a user table in Oracle:
Insert into sq_adminName,Password,# {Inneruserid, jdbctype = decimal },# {Name, jdbctype = varchar },# {Password, jdbctype = varchar },
Report: NULL cannot be inserted into the ID. Oh! I did
This is slightly modified version of: http://milw0rm.com/exploits/7677This is based on cursor injection and does not need create function privileges: declared number; begind: = inline; dbms_ SQL .parse (D, 'destare Pragma autonomous_transaction;
Compared with the ACCESS database and SQL Server, which have automatic numbers, how does one implement automatic Field Numbers in Oracle databases?
The sequence value is called when data is inserted by creating a sequence in the Oracle database.
//
A common table in Oracle is called a heap table. The data in the heap table is stored unordered and often becomes unordered after a period of time. As shown in, the data corresponding to the same key in the index is stored in different blocks. In
When a user process connects to the database and creates a corresponding session, the Oracle service process sets a PGA zone for the user to store the relevant content of the user session. When the user session ends, the Database System
Translation: each database requires at least one Database Administrator (DBA). A database system may be large and have many users. Therefore, sometimes the database administrator is not working alone, but a DBA group with DBA responsibilities. A
Connect to the database through a client and perform relevant operations
I. Access Method: SQL Plus; PL SQL Developer
Connect to the database using the system account. The link identifier is orcl.
1. Access the database through SQL PlusTwo Methods:
First, the following version is supported:
Http://download.oracle.com/otn/nt/oracle10g/10203/10203_vista_w2k8_x86_production_db.zip
Error:
Checking operating system requirements...Results: 5.0, 5.1, 5.2, 6.0Actual result: 6.1Check complete. The
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