WebService cannot connect to Oracle
2008-7-9Cheungmine
1 problem Source: I cannot connect to Oracle10g in WebService
2 solution:9i: added the User Authenticated Users (read and run permissions) to the ORACLE_HOME directory)Or10g: add the User
Database Name
Is the name of the database, such as myoracle, which is generally only applicable to standalone machines; Global Database Name
Is the name of the database in a network. For example, if the domain of the Database Host Machine is
In Oracle/PLSQL, The instr function returns the position of the string to be truncated in the source string.
Syntax: instr (string1, string2 [, start_position [, nth_appearance])
String1 source string to be searched in this string.
String2:
Oracle does not automatically add primary keys. This is different from SQL Server. in Oracle, sequence and trigger must be used to increase the primary keys.
1. Create a data table
Create Table test_increase (userid number (10) primary key,/*
The case expression can implement the if-then-else logic in SQL without using PL/SQL. The case method is similar to decode (), but case should be used because it is ANSI compatible.
Case has two expressions:
1. Use a simple case expression to
Common Oracle database field types are as follows:
Field Type
Description
Restrictions
Other Instructions
Char
Fixed-length string
Maximum length: 2000 bytes
Varchar2
Variable-length string
Maximum
Program Header
Create or replace package pck_pager is type t_curor is ref cursor; Procedure getrecordbypage (p_tablename in varchar2, -- table name p_strwhere in out varchar2, -- Query condition p_ordercolumn in varchar2, -- Sort columns (such as id
Configuration when a listener error occurs:
|-Error 1: Oracle Database listening services often encounter errors. The Registry is deleted when the optimization software is used.
Registration items of the listener service:
HKEY_LOCAL_MACHINE \ SYSTEM
Use
Oracle
External tables to query analysis warning logs
Oracle
The warning logs in are recorded in the chronological order.
Oracle
Internal errors in the database, so that you can use this warning log to remind you that you can query the warning
AnalysisOracle Data Scanning
--Oracle SQL query optimization
(1)
Data Reading Method
1,Oracle Data Reading:
1.1 data read operation type:
In any database, when we initiate an SQL statement to query data, the SQL Execution engine scans data to return
Flexible applicationRownum virtual Column
Rownum is not a physical column actually exists in the table, but a virtual column that can be used in any SQL statement. If you can correctly understand the concept and features of rownum, you can apply it
It is found that only the index can be used to obtain the opportunity to query data.
If you can effectively obtain data through indexes, it will undoubtedly provide a great help for query performance. However, if the index selection is poor or the
Previously, we discussed the types of data read operations in the database, and focused on the data read methods that are useful for data read operations in local range scanning, it also discusses the impact of the database optimizer mode on
Background:
Myeclipse character encoding GBK
Oracle Database character encoding GBK
The character encoding UTF-8 that inserts content from a third party using the WebService Interface
Problem description:
Pre-compiled by Java
Summary of Oracle distributed transactions ()
Basic Concepts
Local Coordinator: in distributed transactions, you must refer to the data on other nodes to complete this part of the site.
Global Coordinator: The initiator of the distributed
Author: skateTime: 2010/10/19
Insert Optimization
To increase the insert speed, you must first know what affects the slow insert and generate redo and undo during insert execution. To increase the insert speed, when fully utilizing system resources,
The bulk collect usage of the Oracle database-related knowledge of batch addition, deletion, modification, is the content we will mainly introduce in this article, a key improvement of the forall statement, which can greatly simplify the code, and
We should not only write SQL statements, but also write SQL statements with excellent performance. The following sections will help the author learn, extract, and summarize some materials to share with you!(1) select the most efficient table name
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