With as syntax – for an alias with the TMP as (SELECT * from Tb_name)– for multiple aliases with the TMP as (SELECT * from Tb_name), TMP2 as (SELECT * from Tb_name2), Tmp3 as (SELECT * from Tb_name3), ...
123456789
--相当于建了个e临时表with
1, grant to database user (object to User table) Grant privilege[, ...] On object[, ...] to {public | GROUP group| Username}privilege:select: Querying insert: Inserting update: Updating delete: Deleting Rule:all: All Grant Select,insert,update on
0The first few in turn introduce the basic installation of CentOS and the installation configuration of common software, then we will challenge the installation configuration of Oracle 11g. Unlike previously installed software, because Oracle is not
"This article describes"Oracle Unlike MySQL, after installing a service after installation, if MySQL is not connected, open its service on line. Oracle is a multi-service, which services to open, which services do not need to open, for the novice is
0The previous chapter (http://www.cnblogs.com/souvenir/p/3884904.html) We used a lot of time and a long space to introduce Oracle's entire installation process, hoping to help everyone. Oracle automatically starts the database service when it is
Busy work every day, ah, really busy, today in the work of a small problem, is the oracle of the user name, Oracle does not seem to provide a statement such as rename, so can only directly change the lower view, this is my experimental resultsSELECT
Chapter One: Oracle database has a default of three users: Sys/system/scott (normal user)Oracle database when creating a new user, because there is no permission to log on to the system, but also to assign it permissions (database permissions and
Of course: It is recommended to automatically expand the Resume table space, the code is as follows: (note the bottom three lines) Create tablespace prmms_log logging datafile ' C:\app\Administrator\product\11.2.0\dbhome_1\database\prmms_log.dbf '
[Oracle] User Creation and permission management
# Administrator permissions are required to create a user.SQL> create user lzz identified by lzz123; // a common user is created, but not unlocked.# Change the password of a user# For yourself:SQL>
Export an empty table at oracle11gDeferred_segment_creation Parameter
This parameter indicates whether to create a segment immediately when an object (such as a table) is created without data at the beginning. The default value is true. This will
Dbca create database ORA-01034ORACLEnotavailableSYMPTOMS
When using dbca to create a database, when all the parameters are set up, the ORA-01034 ORACLE not available,
For example
CAUSE
There's a script in ORACLE_HOME/sqlplus/admin which is
Common oracle functions (2)
1. TRIM ([{LEADING | TRAILING | BOTH} [trim_character] | trim_character} FROM] trim_source) FunctionParameter: If leading is specified, the oracle database removes any starting characters equal to trim_character.Parameter:
Oracle scott unlock steps, oraclescott
Run cmd
Sqlplus/nolog press ENTER
SQL> conn/as sysdba press ENTER
SQL> alter user scott account unlock; press ENTER
SQL> disconnect press ENTER
SQL> conn scott/tiger @ orcl; press ENTER
Enter two new passwords
Check statement for dead transactions in Oracle and statement for dead transactions in oracle
SQL> SELECT KTUXEUSN, KTUXESLT, KTUXESQN, /* Transaction ID */ 2 KTUXESTA Status, KTUXECFL Flags ,KTUXESIZ 3 FROM x$ktuxe 4 WHERE ktuxesta!='INACTIVE';
Several ways to modify the table name in oracle, and several ways to modify the table in oracle
Answer1:
Alter table old_table_name rename to new_table_name; (uppercase: System Command)
Answer2:
SQL> select tname from tab;TNAME-------------------
Step for creating the auto-increment ID field in the oracle database, oracle Field
The steps for using the auto-increment ID field in oracle are complex and summarized as follows:
-- Create a table
Create table advice (id int not null, active int
View the encoding of the oracle database and how to modify the encoding format.
First, check the encoding of the oracle database.
SQL> select * from nls_database_parameters where parameter ='NLS_CHARACTERSET';
PARAMETER--------------------VALUE------
There are three ways to write a script that ends with a percentage sign in Oracle.
Data
The goal is to get the data row with ID = 4443. There are three methods to record it:
First, substr:
SELECT * from test where substr (NOTE,-1) = CHR (37 );
Oracle 11g warning log and listening log deletion method, oracle11g
The listening and warning logs for oracle 11G are in the/u01/oracle/diag/tnslsnr/oracle/listener directory and/u01/oracle/diag/rdbms/db1/db1 directory. the listener directory and db1
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.