When developing a database, you may sometimes need to read data of the clob type in the Oracle database. For the purpose of code reuse, I wrote the following stored procedure: Read the data of the clob field in the database. I hope to share with you.
#/U01/app/Oracle/oraInventory/orainstRoot. shChanging permissions of/u01/app/oracle/oraInventory to 775.Changing groupname of/u01/app/oracle/oraInventory to oinstall.The execution of the script is complete#/U01/app/oracle/product/10.2.0/db_1/root.
Generally, commands are executed as Oracle.
1. Verify that the system dependency package required by Oracle is complete.
Rpm-qa binutils compat-db control-center gcc-c ++ glibc-common libstdc ++-devel make libaio libXp
2. Verify System
Due to a problem with the stability of Fedora 14 in my current version, I decided to change it to Ubuntu 10.10, just because I had used this version for a while and felt that it was superior in performance, stability is also good (for the linux
An instance corresponds to an SGA, which can occupy 80% of the physical memory.Shared poolDatabase buffer cacheRedo log bufferOther structures
Run the show sga command to view the SGA
SGA basic unit: granules (10 M. 16 M)
Select componet,
If one
Xwindow must be enabled for Oracle 10g installation in Linux. The installation interface is very ugly!The patch and Installer are generally large and daunting for the first time. Record the startup process:
Su oracleExport ORACLE_BASE
The 10046 event of Oracle can track the SQL statements executed by the application and obtain the number of resolutions, executions, CPU usage time, and other information. This is very useful for us to analyze and locate database performance issues.
// Construct a table that is the same as a known table. The common methods are as follows:// Create table t_name// Select col_name from t_exists// Where 1 = 0;// This construction method reduces our workload and brings great convenience;// But do
More than one million new data records are added each month, and two major data tables (test_ad, test_pd) need to be processed on a regular basis to move data other than the current month to the historical table for storage
The data operation stored
// We all know that the wm_concat () function has the function of connecting strings,// The following is an instance:With t (Select 'A' well number, to_date ('1970-1-10 ', 'yyyy-mm-dd') report date, 'excellent 1' working condition from dual union
// Question:ID NAME------------11 Wang2 Zhao// Result:ID NAME--------1Wang2 Zhao// Solution 1:With t (Select 1 id, 'zhang 'name from dual union allSelect 1 id, 'King' name from dual union allSelect 1 id, 'lil' name from dual union allSelect 2 id,
// Requirement:// Query the information entered when the user is not on a business trip// Analysis:// Subquery: We can explicitly query the user IDs and time of information entered during a business trip.// Master query: we retrieve information from
// Data
Ta
Col_1 col_2
-----------
A
B
C
D
// Result:
Col_1 col_2
-----------
A z0001
B z0002
C z0003
D z0004
//
Create table ta (
Col_1 varchar2 (2 ),
Col_2 varchar2 (7 ))
/
Insert into ta
Select'A',''From dual union all
The details are as follows:Note the relationship between new. attribute and old. attribute and source table and view attributes.[Root @ me root] # su postgresBash-2.05b $ psql-E-h me.linux.edu.cn mydb1* ******** QUERY **********BEGIN; SELECT
I. Features of SQL Loader Oracle has many tools for data migration, backup, and recovery. However, each tool has its own characteristics.For example, exp and imp can be used to export and export data in the database, which is a good tool for
Help colleagues debug the Code:
$ SQL _insert_user = sprintf ("INSERT INTO cc_user ('CC _ id', 'name', 'Password') values (: cc_id,: name,: password )");
The SQL statement syntax is incorrect and the insert operation cannot be performed.
You can
SQL tuning focuses on the filter information. The developer sends an email asking me to optimize the following SQL
Hi Robinson,
Kindly need your help to check the below SQL for performance issue with Hyper plan detail report. Thanks in advance.
When you use Experimenter in Weka to connect to a Mysql database, the default link is:
Jdbc: idb = experiments. GP
Change it:
Jdbc: mysql: // 222.35.250.58: 3306/labin_ultimate_original
(Mysql host and database names need to be set according to the
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