1. What is registration?
Registration is to register the database as a service to the listener. The client does not need to know the Database Name and Instance name. It only needs to know the service name provided by the database to external users
Example of creating and using oracle Stored Procedure
1. Create a stored procedureCreate or replace package pk_1 as // statement for creating a packageTYPE cur is ref cursor; // declare a pointerProcedure p1 (cr out cur );End;
/
Create or replace
Apart from significant technical differences between SQL Server and Oracle databases, there are also significant differences in implementation costs. I will share some of my views on this topic and hope to communicate with you.
I. Oracle is
SQL statement for querying and deleting duplicate records
SQL statement for querying and deleting duplicate records
1. Search for redundant duplicate records in the Table. duplicate records are determined based on a single field (peopleId ).
Select *
The version installed on the Oracle server is 10.1 and the IP address is 129.1.9.90.Install oracle10.1 on the backup machine with the IP address 129.1.9.91 and disable the firewall.Modify the tnsnames. ora file and add the following content:JMYBJS =(
Problem description:
ORA-01658: unable to create INITIAL extent for segmnet in tablespace DATA01
Cause:
Data cannot be inserted because the tablespace DATA01 space is insufficient.
Solution:
Redefinition of the tablespace size:Alter tablespace
101. How to search for the first N records?
SQL> SELECT * FROM empLOYEE WHERE ROWNUM
102. How many concurrent users are supported by Oracle on the machine?SQL> conn internal;SQL> show parameter processes;
103. Can db_block_size be
Batch deletion of massive data is usually complicated and slow, and there are many methods, but the general concept is: Batch deletion and successive submission. The following is my deletion process. My data tables can be deleted through the primary
1 Oracle time period Query
1.1 scenario: filter the corresponding records based on the time range entered by the user.
1.2 solution:
Method 1:
SQL codeSELECT * FROM T_XJXX_XJGLWhere createdate> = TO_DATE (2011-6-13, yyyy-MM-dd)And createdate
SELECT
3.6 Wordlist attributes
The wordlist attribute of Oracle full-text search is used to set fuzzy queries and root queries. The wordlist attribute also supports
For subqueries and prefix queries, the oracle wordlist attribute is only basic_wordlist
Two meanings of table size in OracleOne is the number of physical spaces allocated to a table, regardless of whether the space is used or not. You can query the number of bytes as follows:Select segment_name, bytesFrom user_segmentsWhere
Flash back is the biggest new feature of oracle10g. Most of the flash back content has been sorted out before, including flash back database, flash back Delete table, delete table, and Flash back version query, this topic describes how to ensure the
Case 1 of Oracle online Log Recovery: it is a good solution to the loss of a single member in a multi-path log. You only need to copy the intact online log to the bad log. Case 2: All members of non-current online logs lose the simulated environment:
"The cost of configuring the query optimizer is expensive, but it is worth the effort ." (Note 1) In fact, I have seen many sites that underestimate the importance of good configuration. Sometimes, I even had a heated discussion with some people who
To implement conditional statistics in the count () function, use the SUM function to replace the count () function and use the SUM function to implement conditional statistics, you can use the case when statement or Decode function to convert the
Use bare devices to install oracle10g Database on aix I. Check System Information
[root@aix222 /]# oslevel -r5300-08[root@aix222 /]# prtconf | grep -i memMemory Size: 1904 MBGood Memory Size: 1904 MB…[root@aix222 /]# lsattr -El mem0goodsize 1904
Oracle-user-managed backup (1) I. first, you must know the table space and file information in the database. There are several performance views: v $ datafile, v $ tablespace, v $ tempfile, v $ logfile, v $ controlfile, dba_tablespaces,
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