Oracle Learning Notes (i)

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

What is the difference between MySQL and Oracle's stored procedures?

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

Oracle-merge usage

--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 Data

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

Nodejs-004-oracle Driver Compilation

First, reference

Oracle Sql:to_char and To_number notes

(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

Error in Oracle 11g Dataguard installation

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

Environment configuration prior to Oracle database installation

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

Management of Oracle

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:

Oracle deletes duplicate data only one message is left

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

Oracle deletes duplicate data only one message is left

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

Usage of with in Oracle

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

Oracle View creation, cursors, left join

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

Connecting Oracle and MySQL databases

"-//hibernate/hibernate Configuration DTD 3.0//en""Http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"

Oracle ORA-32004 Processing

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

Oracle database, fuzzy query, go to re-query

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

SQL (ORACLE)

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),

Python3.5 Connecting the Oracle database under Windows 7

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.

Oracle Installation Notes

dba

Modify Host Name[Email protected] ~]# sed-i "s/hostname=localhost.localdomain/hostname=oracledb/"/etc/sysconfig/network[Email protected] ~]# hostname oracledbAdd host name and IP correspondence record[Email protected] ~]# vi/etc/hosts192.168.1.160

Oracle Manual Cleanup Temporary segment

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------------------------------------------------- --------------

Total Pages: 2147 1 .... 1778 1779 1780 1781 1782 .... 2147 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.