Oracle's clob field is generally not available in the database system. Its reading methods are also somewhat different. Below is a readCodeIt includes the JavaBean database connection and clob implementation methods:
1 dB. Java:
Package
Bitmap indexes are suitable for low-cardinality columns. Low-base columns only have a few values.
Bitmap index problems:Bitmap indexes are used. A key points to multiple rows, and hundreds or more rows may exist. If you update a bitmap index keyThe
Oracle storage functions
Set serveroutput on;-- // There can be no parameters and return is required-- // You do not need to specify the precision for parameters and return types.Create or replace function hello(P_name varchar2)Return
ErrorCodeAs follows:
Connection conn = drivermanager. getconnection ("JDBC: oracle: thin: @ localhost: 1521: orcl", "system", "myoracle ");
To confirm that the user name and password are correct.
The error indicates that the password has expired,
Create tablespace ewmsdb datafile 'e:/ewmsdb/ewms. dbf' size 100 m autoextend on next 10 m maxsize unlimited extent management local;
Create user 'ewmsdb' identified by 'ewmsdb' defalut tablespace ewmsdb;
Create user ewmsdb identified by ewmsdb
Oracle statements used to query all tables of a user
Select * From all_tab_comments-- Query tables and views of all users
Select * From user_tab_comments-- Query the user's tables and views
Select * From all_col_comments
-- Query the column
We know that in SQL Server, datediff can return the time interval between two dates, but such a function does not exist in Oracle. How can this problem be achieved? We will discuss the problem in two ways:1. Just roughly return the number of daysWe
1. List dates
If you know the start date and end date, how can you use an SQL statement to get all the dates in this period.
Eg:Known:2007/04/25 2007/05/02It is concluded that:2007/04/252007/04/262007/04/272007/04/282007/04/292007/04/302007/05/012007
// Restart the server reboot
Telnet 172.21.1.11
Enter User Name
Enter Password
Su-Oracle
Export oracle_sid = orcl // database instance name
LSNRCTL start // start the listener
Sqlplus/nolog // open sqlplus
Conn/As sysdba
Startup // start
In Java Development, we often use the long type to save the time for convenience. currenttimemillis () or Java. util. date. gettime (). The value is the number of milliseconds between the current date and the 1970-01-01;
However, in Oracle,
In Oracle, aliases cannot be used in where statements.
For example
Select T *, to_char (D. Date 'yyyy') as year
From tabtest T, tabdate d
Where year = '20140901'
In addition to placing the function in the WHERE clause, we can also
-- Obtain the number of seconds of the difference between the two time periods(Q. nh j ca0select Ceil (to_date ('2017-05-02 00:00:00 ', 'yyyy-mm-dd hh24-mi-ss')-to_date ('2017-04-30 23:59:59 ', 'yyyy-mm-dd hh24-mi-ss ') * 24*60*60*1000) differs from
1. Search for redundant duplicate records in the Table. duplicate records are determined based on a single field (peopleid ). Select * from peopleWhere peopleid in (select peopleid from people group by peopleid having count(Peopleid)> 1)
2. Delete
Syntax:Select *From table nameWhere condition 1Start with condition 2Connect by prior current table field = cascade table FieldThe start with and connect by prior statements complete recursive records to form a tree structure, which can be used in
PHPStrtotime ("12:25:33")-strtotime ("6:04:56"); // second gapMySQLDatediff ("D", date1, date2) // The number of days difference between the two dates"D" day "M" month "YYYY" year "H" Hour "S" second "ww" WeekDate1 is the start timeDate2 is the end
1. What is an oracle control file?
Record the physical structure of the database, which is an essential binary file for Oracle loading or recovery.
What is a control file?
2. Information in the Oracle Control File
Control File ContentDatabase Name,
After installing oracle on Linux, you need to adjust system parameters to improve Oracle performance.
Several parameter descriptions:Kernel. shmmax-the maximum size of the shared memory segment (in bytes) that can be used by a single process.
I1 main components of Oracle ArchitectureThree main components of Oracle architecture:1. File: five files that constitute the database instance (parameter files, control files, data files, temporary data files, and redo log files)2. system global
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