1. Common Sqlplus Commands(1) View the currently logged in User: Show user;(2) Switch the current login User: Conn username/password (switch system user +as SYSDBA);(3) Disconnect the currently logged-in User: disc;(4) Exit Sqlplus:exit;(5) Modify
MySQL stored procedures(1). FormatFormat created by the MySQL stored procedure: CREATE PROCEDURE procedure name ([process parameters [,...]])[Features ...] Process BodyCase Analysis:ParametersThe parameters of the MySQL stored procedure are used in
--To create a test table:CREATE TABLEMM (ID Number, NAMEVARCHAR2( -)); CREATE TABLEMN (ID Number, NAMEVARCHAR2( -)); --Inserting DataINSERT intoMmVALUES(1,'A'); INSERT intoMNVALUES(1,'B');--Test MergeMERGE intoMN A USING MM B on(a.id=b.id)
Oracle recovery deletes a table or table recordOne: Recovery of the table to the wrong deleted table, as long as not using the Purge permanent delete option, then recover from the flash back area hope is quite large. General steps are: 1, from the
(1)Select To_char (123.56, ' 999.9 ') from dual; would return 123.6Select To_number (' 123.56 ', ' 999.9 ') from dual; Would fail because of error "ora-01722:invalid number"(2)Select To_char (123.56, ' 999 ') from dual; would return 124Select
1. log_archive_dest_1 parameter not set, archive file is not synchronizedMon Nov 07 17:39:12 2016Using standby_archive_dest parameter default value as Use_db_recovery_file_destMon Nov 07 17:40:12 2016Using standby_archive_dest parameter default
System version redhat5.6A pre-installation environment configurationView Memorygrep memtotal/proc/meminfogrep swaptotal/proc/meminfo(or free-m simultaneously view memory and swap space, generally need memory 2g,swap space 2G)Modify the user's shell
Start and stop OracleStop and start Oracle needs to be switched to Oracle user only, no other user has this permissionRun Sqlplus but don't log in to Oracle:sqlplus/nologConnect to the Oracle server with the privileges of the system administrator:
Query and delete duplicate records of the SQL statement 1, find redundant records in the table, duplicate records are based on a single field (ID) to determine the select * from table where Id in (select ID from table group Byid have COUNT (ID) > 1
Query and delete duplicate records of SQL statement 1, find redundant records in the table, duplicate records are based on a single field (ID) to determine the select * from table where Id in (the Select ID from table group Byid having count (ID) > 1
For the database, the most common operation is probably the query, a variety of complex queries often to engage us exhausted. Of course, this is nothing. However, for some multi-table queries, we often have no clue, do not know how to operate. Below
Creation of the View:Create or Replace View as Select csib. * , Sib. Stock_io_,sib. Confirm_date_ from dm_mat_contract_stock_in_bill csibleftouter Joinon= sib. Bill_code_;Oracle cursors using: http://www.cnblogs.com/sc-xx/archive/2011/12/03/2275084
SYS as[email protected]>startup open;ora-32004:obsolete or deprecated parameter (s) specified for RDBMS instanceORACLE instance started.ORA-32004: does not affect the use of the database. The error message is a parameter expiration. You can see the
Group to re-query, and execute a function: Select group field, aggregate function from table name where Condition GROUP by Group FieldSelect group field, aggregate function from table name where Condition GROUP by Group Field having filter
Query Database encoding:SELECT * from Sys.nls_database_parameters;SELECT * from Sys.nls_session_parameters;Replace function:Update Table 1 T set t. Column 1=replace ((select column 1from table 1 A where a. primary key column =t. Primary key column),
1, first need to install a good Oracle database, the machine for Plsql connection database Normal, record the database name2. Installing the Cx_oracle modulePip Install Cx_oracle3. Introduction of modules in PythonImport Cx_oracle as CX4.
Today, the development said that a test library of the table space is full to clean up, even on the test library to see, it is already using 99.98%.Tablespace_name size_g free_g used_pct------------------------------------------------- --------------
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