Summary of Oracle Database Management Methods
We often encounter such problems during our daily use of Oracle databases. Here I will summarize and share my problems and solutions, hope to help you.
The main content is as follows: I. archiving log
In the financial system or other report statistics function, I want to have a lot of cases similar to the following report. With the grouping_id function, it will be easy to implement, and it will be very expensive.
The default number of connections in Oracle Xe seems to be 40. If the process exceeds this number, the request for a connection again will be rejected.
1. Log On with the System user:
Sqlplus system/password @ XE
2. Run the following command:
Full recovery:
3. Recover the opened database (Database Failure Causes downtime );
Database shutdown due to media or hardware faults
Running in hours. The corrupted file does not belong to the system tablespace or rollback tablespace. For
SQL> -- 09. query the sales staff ('slesmance') whose salaries are higher than the average (the average salary includes all employees ') SQL> select * from EMP where job = 'slesmance' and Sal> (select AVG (SAL) from EMP); SQL> -- 10. show the
Navicat Oracle features an intuitive GUI and provides powerful visualization tools such as query editor and syntax highlighting capabilities when previewing SQL, SQL console, text, hexadecimal and blob view/Editor, ssh tunnel and more to improve
Previously, I talked about some simple use of the SELECT statement. This time, I will learn more about the SELECT statement.
Including: Where condition limit query, range query, fuzzy query, and sorting of query results.Where condition-limited Query
Next to Oracle fusion middleware I: database and RCU, this article describes the installation of Weblogic, UCM (webcenter centent), and webcenter portal.
1. WebLogic selects 10.3.6.0 and can be installed using the Installation File of jdeveloper 11.
Decode () can only create new columns (horizontal scaling), while the max () function is used to reduce the number of rows of the same category (vertical compression ), in this way, the original thin database record set is converted into a
Create or replace procedure p_tx_getfaxdata()AsV_errorcode number; -- error codeV_errormsg varchar2 (200); -- error message displayV_currentuser varchar2 (8); -- Current Database UserV_information varchar2 (100); -- error information
Begin
// Do the
In database operations, I often encounter the problem of using random numbers. A few days ago, Xiang Ge asked me about SQL Server's batch generation of random numbers. I remember that he also asked me questions about random numbers under oracle,
400. V $ pq_sysstat
Lists the statistics of the parallel query system.
401. V $ pq_tqstat
Contains statistics on parallel execution operations to help determine imbalance in a query.
402. V $ Process
Contains information about the active process.
403
Modify the character set of Oracle 10 GB
Modify the database character set to zhs16gbk.View server character setsSQL> select * from V $ nls_parameters;Modify:$ Sqlplus/nologSQL> Conn/As sysdbaIf the database server has been started, run shutdown
Document directory
Syntax:
Example:
Output:
Use ohters to handle all errors
Raise_application_error Function
When writing an oracle stored procedure, many things are stored in the stored procedure, such as some judgments. This is much
Two time parameters are passed in when a stored procedure is used to query a project. The query content is like this.
v_sql1:=v_sql1||' and logtime between '''||t_starttime||''' and '''||t_endtime||''' ;
T_starttime and t_endtime are input
I. OracleAspect
1. Create an oracle Stored Procedure
1) create a table
create table users(usesNo number,userName varchar(50));
2) create a package
Create or replace package multirefcursors
Type test_cursor is ref cursor;
Procedure getrecord
1. It is best to use analysis functions.Row_number () over (partition by col1 order by col2)
For example, if you want to retrieve-records, sort them by tname.
Select tname, tabtype from (Select tname, tabtype, row_number () over (order by tname) Rn
Oracle 10g installation in win7, select advanced options, prompt program abnormal termination, an unknown error occurs
Modify Oracle 10g \ database \ stage \ prereq \ dB \ refhost. xml
In the
Go to the install directory and find the oraparam.
Alter any cluster: modify the permissions of any cluster
Alter any index
Alter any role Modify permissions of any role
Alter any sequence
Alter any snapshot
Alter any table
Alter any trigger
Alter cluster Modify permissions on clusters
Alter
On csdn, I also saw a post called Oracle common function 110. after a rough look, there are many data calculations, such as covariance. I don't think I have used much. I can see it today, but it is not very comprehensive. I have added it a little. I
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