Oracle Database File Corruption has been solved. The problem is "error: ORA-01033: Oracle initialization or shutdown in progress", and later from the Internet to find some information, and finally add their own practice finally solved, but there is
First look at the table content
Select name, pass from T1;
2.
Method 1: Use the decode Function
Select name, decode (Pass, 'passs111', 'pass1', 'pass222', 'pass1', '', 'Password') from T1;
Note: If you do not list the possible
Article 2: publish a simple webapp example.
The simplest thing is helloworld. Let's use servlet to output a hello World and release it to the Solaris.
The following example assumes that you have mastered the servlet Development Method in JB, and
I. original configuration Intention
Although Oracle has been used for many years, it has been used only for a long time and has not gone deep into Oracle's stuff. For the first time, if you create a complete Oracle server on the server and configure
As a result, you can create a project by following the steps I have mentioned. If you have any questions, ask me.
Let's take a look at the steps below!
1. Set the variables, which are required in the following environment variables and can be
During installation, follow the default configuration to "Next" and create a database orcl.
I did not find it when I accessed em, So I installed it manually.
Run the following command in the command line window as an administrator:
1. Delete
1. The select into statement requires at least one record of the select result;If RS is null, no_data_found exception is thrown. Therefore, exception capture is required;
2. When performing update and delete operations, you can replace the PK with
Oracle backup features include:
Advanced Replication)
Streaming Replication)
Slave uard)
One worker uard:
Dataguard is generally the first choice for DBA in terms of high availability and Disaster Tolerance. After all, dataguard has an overwhelming
Square brackets
Square brackets
Description
[[: Alnum:]
Character mix of letters and numbers
[[: Alpha:]
Letter
[[: Cntrl:]
Control characters
[[: Digit:]
Numeric characters
[[:
In ORACLE:
The connector is: |
For example:
SQL> select 'employee _ id is '| employee_id from HR. Employees where employee_id = 100;
'Employee _ idis '| employee_id-------------------------------------------------------Employee_id is 100
Double
Several parameters are displayed consecutively with the implicit parameters of the Oracle optimizer._ Sort_elimination_cost_ratioRelated Optimization cases (referRefer ).
If _ sort_elimination_cost_ratio is used as the keyword to query on Metalink,
Modify the Oracle system configuration file/etc/oratab/Etc/oratab format: Sid: ORACLE_HOME: AutoSet the auto domain to Y (uppercase). Only in this way can dbstart and dbshut of Oracle be used. Mine is:$ Oracle_sid: $ ORACLE_HOME: YHere, oracle_sid
MySQL, sqlserver, and Oracle databases are queried by page
The database implements the paging query method.I,MySQL database paging QueryThe implementation page of MySQL database is relatively simple, and the limit function is provided.
Oracle databases are generally accessed remotely. Local access is probably used for testing.
The following describes a simple access method:
Oracle9i.
Run: Net configuration assist. The procedure is as follows:Add Oracle8i or later database or
Oracle backup and recovery can be achieved through import (IMP) Export (exp:
Run exp help = y
View tablespacesSelect * from V $ tablespace
1 2 cwmlite Yes2 3 drsys Yes3 4 example Yes4 5 indx Yes5 0 system Yes6 7 Tools Yes7 1 undotbs Yes8 8 users
SQL * Plus has two meanings: one refers to the SQL dialect of Oracle, and the other is the command line interface that only executes the dialect of oracle or similar command lines.
PL/SQL is complicated. For the orcale data programming language,
This function is customized because "wmsys. wm_concat" is unstable in 10 Gb. Now you have written your own defined functions. The functions and usage are the same as those of the "wmsys. wm_concat" function. I posted it to everyone.
Note: This is
When restructuring a project in the company, I found a bug. During the correction, I needed to use the Oracle column-and-column conversion. Although I do not understand it, Baidu was my best teacher. I found an article on the Internet, detailed
Requirements:Given data table: wm_testCode name11 B1 c2 In progress2 countries2 persons
Required results (the separator can be input by parameters ):Code name1 a, B, c2 middle, country, people
This problem can be solved using the wmsys. wm_concat
* Execute an insert statement and pass the parameter */Create or replace procedure p_test2 (I in number)BeginInsert into T values (I, 'x' | to_char (I ));Commit;End;/
AAA BBB String driver = "oracle. JDBC. Driver. oracledriver ";String strurl =
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