1. Unzip the Instantclient_12_1-x32.rar file and extract it below Instantclient_12_1-x32\network\admin\tnsnames.ora, Find Tnsnames.ora This file, configure the details in this fileIf the client is not installed locally, you can configure it as
1. Go directly to the Sqlplus command promptSqlplus/nolog2. Connect as OS IdentitySqlplus/as SYSDBA orConnect/as SYSDBA3, Normal User loginSqlplus scott/123456 orConnect scott/123456 orConnect Scott/[email protected]4. Log in as AdministratorSqlplus
Oracle is not case-sensitive, and do not know MM, so instead of Mi,yyyy/mm/dd HH24:MI:SS, in order to avoid errors, write the time to capitalize.Start_up_time type is date typeThe Completion_time type is NVARCHAR2 and the value format is 2011-11-23 0
SELECT * FROM EMP ESELECT * FROM Dept DSELECT * FROM Salgrade s--oracle unique function case whenSelectCase 2When 1 Then ' one 'When 2 Then ' two 'When 3 Then ' three 'Else ' other 'Endfrom dual;--oracle Unique function decodeSelect Decode (3,1, '
In Oracle, you need to use sequence when you need to create a self-increment field. Sequence can also be used in MySQL, but there are some differences, in the future to add, first of all the basic use of Oracle sequence summary, convenient for
After logging in Sqlplus, use shutdown immediate to shut down the database and exit the window if you do not restart the database using startup, the next time you restart the Sqlplus window, you will be unable to log in, the workaround is as
Connect to the database via Plsql, and the ora-01033:oracle initialization or shutdown in progress prompt message pops up.I found a dependent solution on the Internet, as followsThe client Oracle server enters the PL/SQL developer times
create sequence name Increment Span style= "COLOR: #0000ff" >by x // x for Growth interval Start with x // x is the initial value MaxValue x // x MinValue x // x is the lowest value CYCL E // cyclic use, when reaching the maximum or
from:https://sourceforge.net/p/cx-oracle/mailman/message/27145597/I ' d do it with a "row factory", here is the examples, one which builds a dictionary, the other one builds a "named tuple" and is very similar to sqlite3. Row.defmakedictfactory
ORACLE 11G Password Expiration issue:1. Use the Oracle user to enter the SQL Editor to execute the Change password (original password, remain unchanged) commandSql>alter user username identified by "password";2, the view user's proifle is that,
1First open the Plsql, login the database you need to access.
2Click Tools on the toolbar.
3Select Export User Object in the drop-down box.
4A window pops up where you can select the table you want to export, and hold down CTRL to make
1, "trunc (for dates)" trunc () function processing dateSelect Trunc (sysdate, ' yy ') from dual;--returns the first day of the yearSelect Trunc (sysdate, ' mm ') from dual;--returns the first day of the monthSelect Trunc (sysdate, ' DD ') from dual;
---restore content starts---1. Determine if the VM's hard disk space is df-h enough, the hard disk space free disk 15G is more secure2. Identify the network and require remote connect ifconfig3. Verify kernel. Confirm that the Linux version meets
about Oracle1. Sqlplus Connect Remote Oracle Command
Sqlplus (need to set environment variables) Scott (username)/5456 (password) @192.168.230.128:1521 (IP)/ORCL (database name)
2. View Current User
Show user--Sqlplus command
------------I do not have him, but the hand is ripe, humble and foolish, and eager to be hungry-------------Summary One version:The database definition language for theLanguageDDL(data definition) . Used to create various objects in the database.
Basic Relationship: Database---Table space---data segment---partition---data blockData blockBlock Block is the smallest unit of data information that Oracle stores. This is the smallest unit in the Oracle environment. Oracle is also a block of data
Select Inst_id,status,count (*) from Gv$session GROUP by inst_id,status Order by status;$ORACLE _home\rdbms\admin\spreport.sqlOracle database PatrolFirst, the operating system check1. Operating system Resource Usage Top/topas/iostat/vmstat focus on
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