Sqlplus login. SQL setting [SQL] define_editor = vi set serveroutput on size 100000 set trimspool on set long 5000 www.2cto.com set linesize 120 set pagesize 9999 column plan_plus_exp format a80 column global_name new_value gname set termout off
1. The most common one is update t1 set B = (select B from t2 where t1.a = t2.a). However, pay attention to the impact of null values. If you are afraid of the impact of null values, update t1 set tname = (select sname from t2 where t1.id = t2.id)
WMSYS. the usage of the WM_CONCAT function is provided by the WMSYS. the following is an example of how the WM_CONCAT function can complete row-to-column conversion: 1. prepare data: SQL code create table testtable (id number, name varchar2 (30);
An example is provided to illustrate the function of union all in the database. The present table Aid name1 name21 aa bb2 aa cc3 bb cc4 aa dd ................. www.2cto.com needs to count the number of times each name appears. The expected result is
Plsql cannot connect to the oracle server in linux. Recently, when the company was down, it was found that after oracle data and listening programs in linux started normally, plsql on the client still could not connect to the server, ORA-12514 error
Analysis of ORACLE time function (SYSDATE) 1: Obtain the SQL statement of the week of the current month> select to_char (sysdate, 'yyyymmdd W HH24: MI: ss') from dual; TO_CHAR (SYSDATE, 'yy ----------------- 20030327 4 18: 16: 09SQL> select to_char (
Time-based backup retention policy rman study 1 Experiment Preparation a) physical and logical checks [SQL] SQL> col file_name for a70 wrapped SQL> select file_name, status from dba_data_files where file_id = 4; FILE_NAME STATUS certificate ---------
The overview file of Oracle is also called a resource file. It is a concept proposed by Oracle to rationally allocate and use system resources. When a DBA creates a user, Oracle automatically creates an associated default profile for the user. The
Oracle role management overview roles are a classification management method for users, similar to the "create post authorization" that is often mentioned in business systems, users with different permissions can be divided into different roles. For
Oracle 10g RAC dual-node time not synchronized under AIX solution 1. A dual-node RAC of a customer is received, and the two nodes are not synchronized at two nodes. Ii. problem diagnosis 1. Check service status: Command crs_stat-t 2. Check time: the
Oracle client configuration 1. copy the client file and copy the instantclient_11_2 folder to a directory. I put it on drive D directly. 2. configure the client environment variable TNS_ADMIND: \ instantclient_11_2 3. configure the sid file
The regular expression in the ORACLE regexp_like function indicates that the character to be matched is a special character, constant, or referenced by the latter. (Repeat the previous match later) \ n match linefeed \ match \ (MATCH (\) Match) ^
Oracle-based user management 1. oracle-Based Default users sys change_on_install [as sysdba] system manage scott tiger 2. start listening lsnrctl start listening name in cmd (default listening name is not writable) 3. Start the instance
Oracle row migration and row link definition: Row migration: Because of update, the row length, the original block can no longer be placed, the row is moved into the new block, row link: the line is too big at the beginning. For example, if you have
In oracle, The next_day () function parses the SQL code. The select next_day (sysdate, 1) from dual NEXT_DAY (date, char) date parameter for the next Monday of the current system time is of the date type, char: 1 ~ 7 or Monday/Mon ~
The use of the case end and decode functions in the select clause can be implemented using the case end and decode functions to compare the size of the Field Values in the select clause of the Oracle database. For example, www.2cto.com queries the
Strange query Problem and Solution for oracle 11g fields WITH resultTable AS (www.2cto.com SELECT B. stand_1__pri_id, B. PRODFAM_ID, B. PRODFAM_CODE, B. PRODUCT_LINE_ID, B. PRICE_LOOUP_TYPE, B. PRICE_LOOUP_CODE, B. stand_const, B. SALES_CHANNEL_TYPE,
Common execution time of oracle jobs 1. Execute TRUNC (sysdate, 'mi ') + 1/(24*60) www.2cto.com every minute. 2. Perform regular execution every day for example: TRUNC (sysdate + 1) is executed at 08:30 every day. TRUNC (sysdate + 1) + 1/24 is
Common SQL statements for Oracle Database permission management 1. Three default users in Oracle9g: www.2cto.com username and password sys change_on_install [as sysdba] system manager scott tiger 2. User Logon 1) enable listening C: \ Users \
Reset oracle's sys User Password 1. search for the Instance name PWD in the oracle installation directory. ora file www.2cto.com 2. back up a password file (Be sure to avoid exceptions) 3. generate a new password file and enter the orapwd file = PWD
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