We may have this situation, a table originally poorly designed, resulting in the table data data duplication, then, how to delete the duplicate data.Duplicate data may have two scenarios, the first one being only some of the fields in the table, and
Question Prompt
Error tip: Error:ora-12514:tns:listener could not resolve service_name given in Connect
Workaround:
The code is as follows 1. Open /network/admin/listener.ora file, find: Sid_list_listener = (Sid_list = (Sid_desc = (SID_NAME =
Problems with JSP and Oracle are encountered(1) Write stored procedures in Oracle and read in Java find it is impossible to get a long type with getstring. and other varchar2 taken out together can be taken out as string valuesString
Such as:
11 is in front of 9, because it is sorted according to string (so 1 is definitely ahead of 9), not sorted by the actual size of the number.
What to do now.
Use Orale SQL keyword: cast, convert varchar2 to int, but only if the field is
Materialized views in Oracle
A materialized view is a database pair that includes a query result, which is a local copy of the remote data, or is used to generate a summary table based on the sum of the data tables. Materialized views store data
The workaround can be done by using the following SQL statement
First you need to log on using DBA.
To run the cmd command-line tool, enter:
Sqlplus/as SYSDBA
Sqlplus sys/Password @ database use case name as Sysdba
After you enter the DBA's
Due to field application needs, the newly configured Oracle RAC environment needs to be added with 2 Scanip addresses, 10.138.129.106 and 10.138.129.107.
Pre-configuration scenario:
[grid@db1 ~]$ srvctl config scan----View configuration information
Because of Oracle commercial copyright issues, MAVEN cannot download jar packages directly through the central repository, and if you want to use jar packs, you need to manually process them.
Step One: Place the Ojdbc14.jar in the user's directory,
Oracle Multiple Table Association UPDATE statement
1 The simplest form of SQL code
--confirmed that all customer_id less than 1000 of the Customers table are ' Beijing '
Within the--1000 are the company to the country before the old customers in
If you are are on database release 10.1.x or 10.2.x the XDB Feature are mandatory in order to use any of the member functions O f the XmlType. This is true even if you are are not using the repository, or registered schema aspects of the XDB feature.
Problem Description:When generating large amounts of data for performance testing, the current table data 100w is generated from the stored procedure, and then the data for the past two months is generated from the current table data through another
Odac installation Method: Http://jingyan.baidu.com/article/e4511cf336ce872b845eafd4.html (1) to determine the installation directory: D:\Oracle11gR2Client;(2) Install ODAC package: only need to install ODP.NET4 component: Install.bat odp.net4
I. Database user management
1. Users and Security
The security of Oracle databases includes the mechanism for controlling database access and use at the object level, which is implemented by database users. The database user is defined in the
Cause: I installed the Oracle database on the Windows system and deleted the Oracle tablespace file without starting Oracle, and the next time I started it, I would have an error, as follows: Ora-01033:oracle Initializationg or Shutdown in progress.
--Specification create or replace package test_pkg is --test_pkg for package name procedure showmessage; --declares a process Function myadd (x in number,y in number) return number; --declaration function end test_pkg;
1: View the table space situation
Select Tablespace_name,
FILE_ID,
file_name,
Round (Bytes/(1024 * 1024), 0) Total_space
From Dba_data_files
ORDER BY Tablespace_name
2: Create a table space
CREATE tablespace
--View Oracle database Character set:
SELECT * FROM V$nls_parameters
Select Userenv (' language ') from dual;
Query results:
Simplified Chinese_china. Al32utf8
--Modifying the Oracle Database Character set: (In SQL Plus)
Sql> Conn/as
Example: Cursor loop loop cursor SET serveriutput on DECLARE r_emp emp%rowtype; CURSOR C_emp is a SELECT * from EMP; BEGIN OPEN c_emp; LOOP FETCH c_emp into r_emp; EXIT when C_emp%notfound; Dbms_out. Put. Put_Line (' Salary of Employee ' | |
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