Stored procedures within Oracle are returned by a cursor to the result setDataTable dt =NewDataTable (); Oracleparameter[] Paras=Neworacleparameter[5]; paras[0] =NewOracleParameter ("P_starttime", Oracletype.char); paras[0]. Value =StartTime; paras[1
The SRVCTL command can control Instance,listener and services in the RAC database. Typically SRVCTL is executed under Oracle user. Let's introduce the SRVCTL command. 1, through the SRVCTL command to Start/stop/check all instances: $ srvctl
Two days ago colleagues asked an oracle to use grouping to complete a statistical report function, this function is handsome. Developing a grouped report directly a SQL is done.Grouping (ColumnA) function means: If the current line is generated by
1. Parse tables and indexes (analyze does not rebuild the index )Analyze table TableName COMPUTE statisticsEquivalent to analyze table TableName compute statistics for table for all indexes for all columnsStatistics for table exist in views:
1. Rebuilding the host's Oracle User Group Unified Specification UID GID to ensure shared storage hooks or other requirements for permission specificationUserdel-501 Oracle#ID oracleuid= (Oracle) gid= (oinstall) group = (Oinstall), 501 (DBA)2.
Close the database as Sysdbashutdown Abort
Clear Oracle SoftwareSu--RF *
rm-rf/etc/ora*
4 (Tikanga) changed to version 5
vi/etc/pam.d/Login Line at the end of the deletion session required pam_limits.so
vi/etc/security/for Oracle2047163841
Select * fromTabs--All tables under the current userSelect * fromDual--Pseudo TableSelect * from(Select * fromFduserOrder byDbms_random.value)whereRowNum=1;--randomly querying a single piece of dataALTER USER TMFC account UNLOCK
When doing the SQL tuning, sometimes need to add an index, test the performance improvement has no help group, if this table is very large, build index will be very troublesome, this scene virtual index will be the debut. Here's an experiment:Sql>
Unzip Instantclient_12_1 to D:\Oracle\instantclient_12_1Create a directory within a folder,/network/adminUnder this directory, create a new file Tnsnames.oraAdamdb = = = = (PROTOCOL = TCP) (HOST = 192.168.1.7) (PORT = 1521)) ==
1. First Stop all Oracle services: computer-management-Services and applications---Click Services, the names of all Oracle start-up are all stopped;2. In the environment variable, the corresponding value in the path variable name is deleted by the
How does Oraclecloudcontrol12c modify the sysman password?
Oracle Cloud Control 12c was deployed on a virtual machine a few days ago, and the login password was forgotten. The main reason is that Oracle-related Software provides stronger security
Oracle: dump File Import error: only DBA can import files exported by other DBAs
Export the dump file of a table from schepaa (DBA permission) and import it to scheab (non-DBA permission). An error is returned.
Use the OB tool to set scheaa to DBA
How to update a patch (RollingPatch) in the OracleRAC Environment)
The Oracle RAC database environment has many similarities and differences with the single-instance database environment. You can use opatch to update database patches. However,
Checking for oracle home incompatibilities failed, incompatibilities
An error is reported during Oracle software installation:
Error cause:
This error is mainly caused by the last installation failure of oracle, but the directory files left
From ORA-27300, ORA-27301 to ORA-00064Recently, due to the increase in the number of sessions, you need to adjust the session, that is, to adjust the process parameter. Look at is a relatively simple problem, but encountered a ORA-27300, ORA-27301.
Application of Oracle virtual Index
When performing SQL optimization, you may need to add an index to test whether it can help improve the performance. If the table is very large at this time, it will be very troublesome to create an index, in this
Process of obtaining the memory lock in the shared pool through hard parsing of OracleOCP
1. Obtain the library cache Latch.
(1) The text of the SQL statement is not found in the name handle of the parent cursor: select * from gyj_t1 where id = 1;
Solve the problem that an empty Oracle11g table cannot be exported.
The deferred_segment_creation parameter is added to Oracle11g. The default value is true when the database is created, which means delayed loading. When no data exists in the table,
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