Oracle shutdown immediate has not responded to the solutionThe database listener suddenly has a problem, and after reconfiguration, restart the database. It was found that both the shutdown and the parameters immediate the same effect, and waited
All below actions should is executed with "Oracle" user Account1. Check The status of listener$ LSNRCTL Status2. If the listener isn ' t be started, start it$ lsnrctl Start3. Set the "ORACLE_SID" environment to the DB instance's SID which you want
Remember before the original Oracle engineers in the routine inspection found an Oracle database server on the start of two listening, respectively, 1521 and 1581 ports, and two ports are in use, then as a strange phenomenon, did not understand why.
This article collects frequently used database queries. Database administrator privileges are required:1. Querying for temporary table space usageSELECT tablespace_name, tablespace_size/1024/1024 tablespace_size_mb, allocated_space/1024/1024
The start with connect by Prior is primarily used for data recursive queries of the B-tree structure type, giving any node in the B-tree structure type, traversing its final parent or child node.--CREATE TABLECreate Tableprior_test (ParentID
Dual is a commonly used table in the development, query this table only returns a row of records, using this feature we can get the system time, in the stored procedure to assign values to variables and so on.Execute Query statement: SELECT * from
(select Table5.shopareaid,table5.usersid, Table5.username from (select Sg.shopareaid,u1.usersid,u1.username,row_ Number () over (PARTITION by Sg.shopareaid ORDER by sg.shopareaid desc) numbers from shops s, Shopgroup sg,users U1 where S. Shopgroupid
201705251537Trcsess.awk tool, use similar to the following:Awk-f Trcsess.awk xxx.trc > Xxx.more1615Tvdztat-i .... trc-o xxx.html201705261604Select T1.pname,t1.pval1,t1.pval2 from sys.aux_stats$ t1where t1.sname= ' Sysstats_main ';Select sum (t1.
/*View view is a table view constructed from several base tables and/or other views that are stored in query statements and do not have real data virtual tables that restrict manipulation of data Complex queries are simpler to provide different
Because the last time we looked at Oracle's transactional consistency, when we consulted the data in the middle, I saw that this place was related to the rollback segment. So the following is a list of simple knowledge. Deeper is no longer digging
1. Table RecoveryFor mistakenly deleted tables, you can basically recover from the Flashback table area as long as you do not use the Purge permanent delete option.The data sheet and the data can be restored back, remember flashback table is
??Replace the Oracle cluster NIC (changing a network Interface)Assume that the NIC name is changed before and after. IP, gateway, subnet mask is not changed, the cluster level is not allowed to do additional operations.After you replace the NIC, use
?? 1 SET TIMING onDescription: Displays the execution time of the SQL statement. The default value is OFF.Used in SQLPLUS , the time is accurate to 0.01 seconds. That's ten milliseconds.In the PL/SQL DEVELOPER . Time accurate to 0.001 seconds: 2
The command that executes the script is already mentioned in the previous section and is no longer duplicated.Sqlplus User/[email protected]:p ort/servicename @/path/sqltest.sql;Sqltest's content and notes:--This whenever indicates that after an
Ii. how the user can effectively use the data dictionaryOracle's data dictionary is one of the most important parts of a database, which is generated as a result of the database, and changes as the database changes , reflecting some of the tables
Data export:1 full export of database test, user Name System Password Manager exported to D:\daochu.dmpExp System/[email protected] file=d:\daochu.dmp full=y2 Exporting the system user in the database to the SYS user's tableExpsystem/[email
Test environmentOs:redhat 6.7oracle:11.2.0.4[Email protected] ~]# su-oracle[Email protected] ~]$ Sqlplus/as SYSDBASql*plus:release 11.2.0.4.0 Production on Thu May 25 15:09:24 2017Copyright (c) 1982, Oracle. All rights reserved.Connect to:Oracle
--1, the following are related tablesSELECT * from V$lock;SELECT * from V$sqlarea;SELECT * from V$session;SELECT * from V$process;SELECT * from V$locked_object;SELECT * from All_objects;SELECT * from v$session_wait;--2, viewing locked tablesSelect B.
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