I. Pre-compiled SQL statement Processing
PreparedStatement is an interface in java. SQL. It is a subinterface of Statement. When you use the Statement object to execute an SQL Statement, you must send the SQL Statement to the DBMS. The DBMS compiles
How to view the Oracle database lock and unlock
-- View database lock details
SelectA. sid, B. serial #, B. username, B. oSUSEr, B. machine, B. program, c. object_name, d. spid,
Decode (a. type,
'Mr','Media recovery',
'Rt','Redo thread',
'Non'
In the Oracle PL-SQL, left and right connections can be implemented in the following way:
Statement segment:
Select modelname, TABLENAME
FORM EMCD_MONITOR_MODEL, EMCD_MONITOR_TABLE
WHERE EMCD_MONITOR_TABLE.MODELID (+) = EMCD_MONITOR_MODEL.ID
[Oracle @ oracle_taowei_RedHat ~] $ Lsnrctl status check whether the listener is startedIf the listener is not started, run the command lsnrctl start to start the listener (lsnrctl stop to stop the listener)After the listener can be started with
Suppose a subprogram declaresINParameter,OUTParameter, andIN OUTParameter. When you call the subprogram,INParameter is passed by reference. That is, a pointer toINActual parameter is passed to the corresponding formal parameter. So, both parameters
The following error occurs when Goldengate is in the replicat process:
The following logs:
16:25:21 WARNING OGG-00869 OCI Error ORA-04098: trigger 't_mlog_log_dtl_submit_state 'is invalid and failed re-validation (status = 4098), SQL .
16:25:21
Restore data files in the system tablespaceThe system tablespace stores the data dictionary information. When the database is in the open state and the data file corresponding to the system tablespace fails, the database will automatically shut down
Lab environment:
Server A: 172.21.1.30
Server B: 172.21.1.40
The two servers run two Oracle databases respectively. This experiment uses the scott user as an example for testing.
Purpose:
Use the copy function of DB_LINK to remotely back up
Sqoop is a tool used to transfer data between Hadoop and relational databases. It can import data from a relational database (such as MySQL, Oracle, and S) to HDFS of Hadoop, you can also import HDFS data to a relational database.
Sqoop User Guide
Note that Ubuntu 11.04 MySQL 5.1 is used. Windows estimates are different .. Study for yourself !!
1. It is not recommended to use the BACKUP and RESTORE commands after logging on to MySQL. Later versions may be removed .. So stop using it!
2. Use
Chinese garbled characters in MySQL databases have been a problem for a long time, whether it is java Development or php development.
For the sake of simplicity, I have always set the encoding to UTF-8 on all my JSP pages. At the same time, when I
ORA-01502: index 'xxx. xxxx' or partition of such index is in unusable state. Solution: Log On With DBA and run the following script.
-- Log On with the DBA permission and execute
-- Fix all indexes in the UNUSABLE status and rebuild them.
Function Introduction
The DECODE function is one of the powerful functions of Oracle PL/SQL. Currently, only oracle SQL provides this function, and other database vendors do not yet implement this function. What is the purpose of DECODE? First,
This is a simple function, that is, using auto-increment columns and triggers.
1. First create a simple table users
-- Create table users
Create TableSystem. users (
Userid varchar2 (20)Primary Key,
UsernameVarchar(20)Not Null,
Userpassword
I. Description
A netizen asked me to store a query result set to the temporary table. If I estimated the size of the temporary table, I wanted to calculate it through the statistical block. Later I thought that this method was not very operational.
/*
Create a stored procedure
Create Or Replace ProcedureProc_nameAs
Begin
Do something;
EndProc_name;
*/
Create Or Replace ProcedureUpdateAAs
Begin
UpdateASetEname ='Dog';
Commit;
EndUpdateA;
-- Test
Begin
UpdateA;
End;
1. Oracle Server is a data management system (RDBMS) that provides open, comprehensive, and almost perfect information management. Oracle is composed of an Oracle instance and an Oracle database.
The Oracle server consists of two parts: the Oracle
Basic Linux operations
Uname-r view kernel version
Df-m to view the space of each storage device
Du-sh: view the current directory space size
View processes and IO: top, mpstat-p all 1 100, iostat-x 1 10 (test IO performance)
Force Delete the rm-rf
These background processes are optional and can be selected based on your needs. They provide some tools, but these tools are not required to run the database every day, unless you want to use them yourself (such as Job Queue ),
Or you need to use
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