. Oracle hierarchical statement Tree Structure
Area_id is the regular primary key ID corresponding to parent_id... administrative partition table
1. Start with T. parent_id. Here parent_id does not display the top root node, so there will be
My solution:
Copy the Oracle/ora92/jdbc/lib/classes12.jar package from the oracle root directory to the/sshproject/webroot/WEB-INF/lib directory.
Reference scheme:
Catch sqlexception when trying to get connection from datasourceOrg. Apache.
1.Queries the current tablespace of a database.
Select tablespace_name, file_name, sum (bytes)/1024/1024 table_size from dba_data_files group by tablespace_name, file_name;
2.Create a tablespace
Create tablespace data01 Datafile
In this case, in addition to enabling cascading modification and cascading deletion using the primary and foreign key constraints between two tables, we can also use triggers to accomplish similar functions. The following example shows how to delete
I. background:
Today, I am working on an OA system. The original database was from Oracle and then changed to the PostgreSQL database. At the beginning, I migrated the database to PostgreSQL. The sequence and table creation were completed through
Dbutil class. Later, I gradually thought it should be a tool class used to connect to the database. This is the dbutil class I extracted from the last sqlhelper class. It's just for your reference. It's not the dbutil class in instructor Han's video.
1. Multi-Table query:
Select * from Scott. Dept;Select * from Scott. salgrade;
Select * from Scott. EMP, Scott. Dept;Each record in the dept table is matched with each record in the EMP table;
Cartesian Product: If a multi-Table query does not
Oracle Transaction Processing
* What is a transaction?A transaction is used to ensure data consistency. It consists of a group of related DML statements. The DML statements in this group are either all successful or all failed.. Transactions and
1. Basic Oracle Query
This is the most important operation on a table.* View the table structure
desc dept;
. Query all columns
select * from dept;
. Query specified Columns
select empno, ename, job, deptno from emp where ename = 'SMITH';
In Oracle,
1. The Zhaoqing merchants alliance was tracked and asked if there were still problems with the Alliance, so as to respond promptly.
To reduce complaints.2. Since the Oracle connection error was encountered again when the system was reinstalled
1. Why can't I export the data using the
Create_time ,
It may be that the date in your pipedate field contains hours, minutes, and seconds.To_date ('1970-08-19 ', 'yyyy-mm-dd') = '1970-08-19 00:00:00' So there is no record.
That is, your 12:01:12
Dual, you can think of as a virtual table with 10 thousand capabilities. Dual is indeed a table. is a table with only one field and one record. 2. in terms of habits, we call it 'pseudo Table '. because it does not store topic data. 3. he exists to
Character function -- returns the character valueAll these functions receive parameters of the character family type (except for CHR) and return character values.Except for some special descriptions, most of these functions return varchar2
Hierarchical Query
-- Auto-join: treats the same table as a different table using the table alias, and then uses the equivalent and non-equivalent join.
Self-connectionSQL> Selecte. ename | 'The Boss is '| D. ename
2 from emp e, EMP d
3 where E. Mgr
First, you can use the following statement to view the existing database mode:Select name, log_mode from V $ database;You can also use the following statementArchive log list; (This method requires the as sysdba)
SQL> archive log listDatabase Log
When creating an instance in Oracle 11gr2 RAC, the following configuration types are selected: Admin-managed and policy-managed:
The official website documents are explained as follows:
6.1 understanding serverpools
Server pools arelogical
On the platform after Oracle 10.2.0.4, we may encounter the following error when importing materialized views using a Data Pump:
...Ksedmp: internal or fatal errorORA-7445: exception encountered: core dump [_ intel_fast_memcpy.a () + 10][SIGSEGV]
From Eagle blog, the original link address is as follows: http://www.dbafan.com/blog? P = 495
11gr2 hasn't studied it yet. paste it to prevent this problem in the future.
-----------------Begin ------------------
On the 11.2.0.2 database, we
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