Clothing, shoes, bags

China professional clothing, shoes, bags, cosmetics, household items on thousands of products.

Posts Tagged ‘number’

Chapter 7 Java Servlet (a)

Hello.java:
}
to easily debug servlet, book, servlet bytecode files stored in D: \ Tomcat \ jakarta-tomcat-4.0 \ webapps \ example \ Web-i nf \ classes, then in the JSP page to call the servlet, servlet URL is:
out.println (header2);
out.println (“
Accept servlet:”);
/ / Get the server name:
import java.util .*;
out.println (“
Protocol:”);
7.3 .1 through the form to submit data to the servlet
out.println (serverPort);
public void doPost (HttpServletRequest request, HttpServletResponse response)
Example 2
int number = 0;
String serverName = request.getServerName ();
response.setContentType (“text / html; charset = GB2312″); / / set the response MIME type.
us in the JSP page, click on a hyperlink to access servlet.
{
7.1.2 init method
{
public synchronized void doPost (HttpServletRequest request, HttpServletResponse response )
import javax.servlet.http .*;
public void doPost (HttpServletRequest request, HttpServletResponse response)
public void init (ServletConfig config) throws ServletException
{/ / get a send data to the client output stream:

example 8
import javax.servlet.http .*;
out.println (“ “);

out.println (” “);
submit the name of the JSP page registered
out.println (” “);
{hashtable.put (person_name, person_name);
out.println (”
client IP: “);
}
if servlet has a package name, for example, Hello package name is tom.jiafei, then call the servlet URL is:
throws ServletException, IOException
public void init (ServletConfig config) throws ServletException
import java.util .*;
import javax.servlet.http .*;
any directory of a Web service JSP page can be accessed through a hyperlink to a form or servlet. Servlet by the JSP page to access the benefits, JSP pages, static pages can be responsible for information processing, dynamic information processing to the servlet to complete.
We already know that, after the servlet is loaded when the servlet request follow-up customer service, the engine will start a new thread in the thread, servlet service method is called to respond to customer requests, and defined in the servlet class member variables, shared by all the client threads. In the following example 4, the use of shared variables to implement a counter.
for (int i = 1; i <= n; i )
out.print (“
” “your name is” person_name);
In the following example 6, the user can submit two forms to the servlet, a positive number, which is a form of presentation post, way to another form of get. Regardless of the user in that way, the server servlet are all factors to calculate this number, returned to the user. 7 In the following example, if using the post method to submit positive, servlet calculate the number of all factors, if using the get method, servlet find less than the total number of primes.
throws ServletException, IOException
/ / text box text information submitted:
break;

HttpServlet except init, service, destroy methods this class has two important methods: doGet and doPost, for handling customer requests and respond to.
out.println (““);
/ examples / servlet / servletName 2 in the following example, JSP page form to submit a positive number, servlet is responsible for calculating the square root of this number.
{out.print (“
” “there are exists illegal letters in your email”);
doPost (request, response);
{super.init (config) ;
response.setContentType (“text / html; charset = GB2312″); OutputStream ();
7.1.3 service method
out.println (“
ServerPort:”);
public class GetMessages extends HttpServlet

out.println ( i);
who learned of the Java language Java Applet (Java applets) are familiar with a Java Applet is java.applet.Applet subclass, the subclass of objects by the the client browser is responsible for initializing and running. Applet and servlet to run a similar mechanism, but it runs on the server side. A servlet javax.servlet package is a subclass of HttpServlet class, the servlet from the server to support the completion of the sub-class of objects that the servlet initialization.
double n = 0;
}
client JSP page by clicking a hyperlink to access a computing servlet
public void service (HttpServletRequest request HttpServletResponse response) throw
{
servlet source files (results shown in Figure 7.6)

number ;
}
{super.init (config);
out.println (““);
}
}
import javax.servlet.http .*;
out.println (“you are” count “th” “people”);
out.println (path);
{public void init (ServletConfig config) throws ServletException

{
response.setContentType (“text / plain “);// set the response MIME type to plain text.
public void init (ServletConfig config) throws ServletException
response.setContentType (“text / html; charset = GB2312″); / / set the response MIME type.
{
if often debugging servlet, the servlet can be placed in webapps / example / Web-inf / classes. Note that, when the user requests a servlet service, due to the engine every time the server checks whether the byte code file has been modified, resulting in less efficient operation of the server.
<% @ page contentType = "text / html; charset = GB2312"%>
out.println (““);
}
{ super.init (config);
In the following example, JSP page through a form to submit a positive real number servlet, servlet is responsible for calculating the square root of this number returned to the customer.
out.println (“Now PI =” 4 * sum);
init method is called only once, at the request servlet is loaded when the first call this method. When a subsequent client requests servlet services, Web services will start a new thread in the thread, servlet service method is called to respond to customer requests, that is, each customer every request led to the implementation of service method is called .
catch (NumberFormatException e)
}
LoginByServlet.java:

Enumeration enum = request.getParameterNames ();
Servlet The life cycle is essentially composed of the following three processes:
import javax.servlet .*;
}
out.println (““);


String method = request.getMethod ();
{double sum = 0, i = 1, j = 1;
while ( enum.hasMoreElements ())
example 1
(2) the birth of the object and then call the service method of servlet response to client requests.
out.println (“

factors of” n “: “);

In order to compile the servlet source file, you need HttpServlet, HttpServletRequest, and the like, JDK built-in package does not contain these types of documents. In order to compile the servlet servlet source file has been created with the byte code file, you need the environment variable contains servlet.jar , this jar file in TOMCAT installation directory common \ lib File, as shown in Figure 7.1 below (you can download to the sun needed to compile the servlet class). For window2000, right-click “My Computer”, pop-up menu, then select Properties to bring up “System Properties” dialog basket, and then click the Advanced Options dialog box, then click the button “Environment Variables”, edit classpath add new environment variable:
out.println (“ “);
PrintWriter out = response.getWriter ();
throws ServletException, IOException
import javax.servlet .*;
7.5.3 set the HTTP response header
example 4 (results shown in Figure 7.7 shown)
import javax.servlet .*;
click submit button:
the JSP page to submit positive
We already know that, when multiple client requests a servlet, the engine start a thread for each client, then the servlet class member variables are shared by all threads.
}
<% @ page contentType = "text / html; charset = GB2312"%>
the JSP page to submit positive
public class ComputerPI extends HttpServlet
Example7_10 :
else
Example 5 (results shown in Figure 7.8)
This method is the method in the HttpServlet class, we re in a servlet write this way.
{out.print (“

input number letter please! “);
double n = 0;
7.5.1 doGet method and doPost methods

7.5 HttpServlet class
out.println ( method);
Example 10 (results shown in Figure 7.12)
and the servlet byte code file exists in that directory, as shown in Figure 7.4.
catch (NumberFormatException e)
because from the package name, Hello full name is tom.jiafei.Hello (like Dalian full name is: China Liaoning Dalian).
Example 6 (results shown in Figure 7.9)
try {n = Double.parseDouble (number);
7.2.2 compiled servlet
Method Description:
out.println (length);
out.println (““);
out.println (header4); < br /> {/ / get a client to send data to the output stream:
7.2 compile and install the servlet
double n = 0;
public synchronized void service (HttpServletRequest request, HttpServletResponse response)
/ / get client IP address:

public class Sqrt extends HttpServlet
public void doPost (HttpServletRequest request, HttpServletResponse response)
String path = request.getServletPath ();
out.println (i);
/ / the way information is presented by the customer:
public synchronized void doGet (HttpServletRequest request, HttpServletResponse response)
int length = request.getContentLength ();
public void doGet (HttpServletRequest request, HttpServletResponse response)
if (n> = 3)
import java.util. *;
{public void init (ServletConfig config) throws ServletException
public class Hello extends HttpServlet
sum = sum i / j;
out.println (“ < BODY> “);
}
import java.io. *;
Count.java:
response.setContentType (” text / html; charset = GB2312 “); / / set the response MIME type.

}
JSP page
public void init (ServletConfig config) throws ServletException
out.println (“
Parameter Names” );
PrintWriter out = response.getWriter ();
String IP = request.getRemoteAddr ();
int serverPort = request.getServerPort ();
{super.init ( config);
if (person_email == null)
}
describes the response HTTP headers, see Chapter 3.
{out.print (“

input number letter please! “);
{/ / get a client to send data to the output stream:
response.setContentType ( “text / html “);// set the MIME type of the response.
package tom.jiafei;
throws ServletException, IOException
we already know, servlet request is first loaded, the server initializes a servlet, a servlet object is created, this object is called init method to complete the necessary initialization. If your source files to the servlet has been modified, and new bytecode file to the classes, if the server is not closed, then the new servlet will not be created because, when the follow-up customer service servlet requests, we have the beginning of the beginning of the servlet service method is called to respond to customers.
out.println (“
Host:”); String header3 = request.getHeader (“Host”); out.println (header3); / / Get HTTP accept-encoding header value:
7.2.4 run servlet
package gping;
doPost (request, response);
the HTTP request header and forms the introduction, can be found in Chapter 3.
}
String number = request.getParameter (“number”); / / get the customer to submit information.
sevlet source
}
load servlet
out.println (““);
enter a number, submitted to the servlet (Post method):
out.println (header1);
package tom.jiafei;
10 in the following example, servlet set the response header: Refresh header value is 2 , then the servlet refresh automatically after 2 seconds, 2 seconds after the servlet service method is called again to respond to the user.
7.2.3 store servlet directory

import javax. servlet .*;
}
}
out.println (““);
public void doGet (HttpServletRequest request, HttpServletResponse response)
out.print (“
” Math.sqrt (n));
import javax.servlet .*;
}
(1) initialize the servlet. load the servlet is first requested, the server initializes this servlet, a servlet object is created, this object call the init method to complete the necessary initialization.
throws ServletException, IOException

/ / Get HTTP Host header value:
out.println (“
User-Agent:”) ;
int j = 1;
{public void init (ServletConfig config) throws ServletException
try {n = Double.parseDouble (number);
7.1 Servlet works
out.println (“Now Time:”);
enter a number, servlet find the square root of this number:
if (person_name == null)
out.println (““);
(2) friend directory (one of our custom web service catalog)
We will Hello.java the servlet source files saved to F: \ 2000, then compiled bytecode files Hello.class

doPost (request, response);
import javax.servlet.http .*;
< % @ page contentType = "text / html; charset = GB2312"%>
there is a mathematical formula for calculating π:
{for (j = 2; j {super.init (config);
{super.init (config);
/ / in the hash table to find whether there is the name:
{person_name = “”;
servlet source file


{ String person_email = request.getParameter (“address”);
}
7.1.4 destroy method
givenumber.jsp (results shown in Figure 7.5)
sevlet source
http://localhost:8080/examples/servlet/ create a servlet class name
Sqrt.java
{

If you are only examples Service catalog available servelt, so long as the server engine is started, the browser address bar type:
Example7_6.jsp: <% @ page contentType = "text / html; charset = GB2312"%>
enter a number, submitted to the servlet (Post method):
Example7_9.jsp:
D: \ Tomcat \ jakarta-tomcat-4.0 \ common \ lib \ servlet.ja r;
StringTokenizer fenxi = new StringTokenizer (person_email, “@”); < br /> <% @ page contentType = "text / html; charset = GB2312"%>
example, use the following member variables shared by all clients to achieve this feature to help calculate the value of the customer, that is, whenever the customer requests access when they participated in a servlet? calculations.
ComputerFacor.java:
import java.io. *;
String number = request.getParameter (“number”); / / get the customer to submit information.
Note: In dealing with multi-threading issues, we must pay attention to this question: When two or more threads simultaneously access the same variable, and one thread to modify this variable. We should deal with such issues, or confusion may occur, so the above example the service is a synchronized method.

import java.io. *;
out.println (IP);
{/ / get a client to send data to the output Flow:
out.println (str);
{out.println (i);
example 7 (results shown in Figure 7.10)

ComputerFacorandPrimNumber.java:

String clientName = request.getRemoteHost ();
if the user request type is either Post or Get, the server the same process, then we can only write in the doPost method process, and in the doGet method can then call the doPost method, doGet method or just write in the process, and in the doPost method call doGet method again (see Example 6).

out.print (“
” “login success!”);
/ / get users to submit name:

calls the servlet JSP page
{out.print (“

input number letter please! “);
DateServlet.java:
If the type of request for different treatment, they need to write in two different ways in the process (see Example 7).
out.println (“ “);
}

enter a number, submitted to the servlet (Get method): < br />}

{PrintWriter out = response.getWriter ();
(1) can be used for all web services directory location for the servlet

out.println (“

Primnumbers less” n “: “);
(1) Root Service catalog
public void doPost ( HttpServletRequest request, HttpServletResponse response)
throws IOException
out.println (“
client name:”);
import javax.servlet.http .*;
public void service (HttpServletRequest reqest, HttpServletResponse response) throws IOException
throws ServletException, IOException
doPost (request, response);
We are not a genius, but we are professionals! We already know, SUN Java Servlet-based company, launched a Java Server Page. JSP provides almost all the benefits of Java Servlet, when a client requests a JSP page, JSP page the JSP engine generates a Java file that a servlet. This chapter will servlet to do a more detailed description, not only for the deep understanding of the JSP has some help, but by learning servlet, so that we can choose to use JSP javabeans servlet model to develop our Web applications.

then in the classes directory must have the following subdirectories, for example, D: \ Tomcat \ jakarta-tomcat-4.0 \ classes directory under the re-establishment of the following structure.

out.println (clientName);
sevlet source
{String s = (String) enum.nextElement ();
out.println (““);
/ / find all the prime numbers less than n:
public void doGet (HttpServletRequest request, HttpServletResponse response)
public void doGet (HttpServletRequest request, HttpServletResponse response )

}

}
}

program if you use a package statement, such as

public class ComputerFactor extends HttpServlet
engine for the first time when the server received to a servlet request, will use the init method to initialize a servlet, and then later whenever the server receives a servlet request, it will spawn a new thread and call the service method of this thread check the type of HTTP request (Get, Post, etc.), and in the service method based on user request methods, corresponding to the ground and then call the doGet or doPost method. Thus, in the servlet class, we do not have to rewrite the way to respond to customer service, service method can be directly inherited. We can rewrite the servlet class in the doPost or doGet method to respond to user requests, which can increase the flexibility of response and reduce the burden on the server.
examples is the default web service engine TOMCAT one catalog.
If you want a servlet can be used only for the examples directory, then create the servlet byte code file simply stored in the webapps / example / Web-inf / classes directory.
public void init (ServletConfig config) throws ServletException
}
}
<% @ page contentType = "text / html; charset = GB2312"%>
out. println (““);
/ / find all the factor n:
out.println (““);
π / 4 = 1-1/3 1/5-1 / 7 1/9-1 / 11 … …
import javax.servlet.http .*;
}
PrintWriter out = response . getWriter ();
http://localhost:8080/web service catalog / servlet / tom.jiafei.Hello
(3) When the server is closed, call the destroy method to eliminate the servlet object.

Method Description:
}
/ / Get HTTP User-Agent header value:

out.println (““);
out.println (serverName);
public class LoginByServlet extends HttpServlet

String header1 = request. getHeader (“User-Agent”);
can, for example, created for the use of the Hello servlet,
we already know, JavaBeans with JSP support this feature, you can effectively manage the static part of the page and the dynamic part of the page. In addition, we can also call in a JSP page servlet to complete a dynamic data processing, and let the JSP page itself handles static information. Therefore, developing a Web application, there are two modes to choose from:
}

String number = request.getParameter (“number “);// get customers the information submitted.
}
/ / find all the factor n:
7.2.1 simple servlet example < br /> 2011 年 12 月 19 日
http://localhost:8080/web service catalog / servlet / create a servlet class name

eat only a little Flying dreams
import javax.servlet.http .*;

out.println (““);
http://localhost:8080/servlet/Hello
to write a servlet java file, you can use a package statement to the servlet package name. Package name can be a valid identifier, an identifier can also be a number of additional “.” Split is made, such as:
{if (i% j == 0)
try {n = Double . parseDouble (number);
}
response.setContentType (“text / html; charset = GB2312″); / / set the response MIME type.

out.println (“
server name:”);
String person_name = request.getParameter (“name”),


throws ServletException, IOException
import java.io. *;
String header2 = request.getHeader (“accept”);

try {n = Double.parseDouble (number);
public class DateServlet extends HttpServlet
for (int i = 1; i <% @ page contentType = "text / html; charset = GB2312"%>
This method is the method in the HttpServlet class, we can directly inherit the servlet method or override this method.
Enter your name:
example 9 (results shown in Figure 7.11)
public void service (HttpServletRequest request, HttpServletResponse response) throws IOException
}


{/ / get a client to send data to the output Flow:
import java.io. *;

import javax.servlet .*;


int n = fenxi.countTokens ();
7.2.5 with package name servle < strong> t
for (int i = 1; i <= n; i )
import javax.servlet .*;
http://localhost:8080/friend/servlet/Hello < br />}
double n = 0;

}
XMLNAMESPACE PREFIX = “ST1″ /> 7.1.1 Servlet
view the life cycle of the time
}
}
{
7.4 servlet of shared variables
out.println (protocol);
enter a number, submitted to the servlet (Get method):
{super.init (config);
catch (NumberFormatException e)
{/ / get a client to send data to the output stream:
PrintWriter out = response.getWriter ();
7.3 invoke the servlet by the JSP page

{if (n% i == 0)
stored in the directory of the servlet and stored in the above (1 ) as described in the servlet directory is different, the server engine first checks webapps / example / Web-inf / classes directory to create the servlet byte code file has been modified, if the re-modified, will be used to eliminate servlet, with the new bytecode re-initialization servlet.
}
handle the HTTP request header sevlet source
Example7_8.jsp:
When the servlet successfully created and initialized, servlet service method is invoked to handle the user request and return a response. Servlet engine two parameters passed to the method, a type HttpServletRequest object that encapsulates the user request for information, call the appropriate method of this object can get the information package that you can use this object to obtain user-submitted information. Another object is a parameter of type HttpServletResponse object used to respond to user requests. And the difference is that the init method, init method is called only once, and service methods may be invoked many times, we already know, when the follow-up customer service request servlet, Servlet engine will start a new thread in the thread , servlet service method is called to respond to customer requests, that is, each customer every request led to the implementation of service method is invoked, the calling process is running in a different thread, without disturbing each other.
response.setContentType (“text / html; charset = GB2312″); / / set the response MIME type.
response.setContentType (“text / html; charset = GB2312″); / / set the response MIME type.
else
}
{Hashtable hashtable = new Hashtable ();

Example 3

String header4 = request.getHeader (” accept-encoding “);

out.println (” “);
/ / client protocol used is:
throws ServletException, IOException
ServletException, IOException
PrintWriter out = response.getWriter ();
if (j> = i )
public class ComputerFactorandPrimNumber extends HttpServlet
{super.init (config);
calls the servlet page (the page is stored in the root directory of web services in Root)

public destroy ()
see PI values ??
import java.io. *;
servlet first When a load is requested, the server initializes a servlet, a servlet that creates the object, call the init method of this object to complete the necessary initialization. This method is executed, servlet engine will a SevletConfig type of object passed to init () method, this object is stored in the servlet object, until the servlet object is eliminated, the ServletConfig object passed to the servlet responsible for service settings, if delivery failure occurs ServeletException, servlet will not work properly.
out.println (“
accept:”);
out.println (“
text:”);
out.println (“
” new Date ());

}
name_found = null;
{/ / get a client to send data to the output stream:
throws ServletException , IOException
PrintWriter out = response.getWriter ();
name_found = (String) hashtable.get (person_name);
import java.io. *;
out.println ( “ “);
String protocol = request.getProtocol ();
JSP page to submit information
In the following example 1 , Hello extends HttpServlet.

servlet from the server supports servlet: servlet engine, responsible for managing the operation. When multiple client requests a servlet engine to start a thread for each client, rather than start a process, these threads to manage the server from the servlet engine, and the traditional start a CGI process for each customer, compared to high efficiency and more.
When the Servlet engine termination of service, such as shutting down the server, etc., destroy () method is executed, the eradication of the servlet object.
}
import javax.servlet.http .*; public class Count extends HttpServlet {int count; public void init (ServletConfig config) throws ServletException {super.init (config); count = 0;} public synchronized void service (HttpServletRequest request, HttpServletResponse response) throws IOException {/ / get a client to send data to the output stream:
Example7_7.jsp:
(2) only for the examples directory service storage available seclet

Capture the Logminer not started

DISABLED ENABLED ABORTED CAPTURED_SCN NUMBER System change number (SCN) of the last redo log record scanned
RULE_SET_OWNER VARCHAR2 (30) Owner of the positive rule set
CAPTURE_USER VARCHAR2 (30) Current user who is enqueuing captured messages < br /> LOGMINER_ID NUMBER Session ID of the LogMiner session associated with the capture process
capture_name The name of the capture process being altered. You must specify an existing capture process name. Do not specify an owner. rule_set_name The name of the positive rule set for the capture process. The positive rule set contains the rules that instruct the capture process to capture changes. If you want to use a positive rule set for the capture process, then you must specify an existing rule set in the form [ schema_name.] rule_set_name. For example, to specify a positive rule set in the HR schema named job_capture_rules, enter hr.job_capture_rules. If the schema is not specified, then the current user is the default. An error is returned if the specified rule set does not exist. You can create a rule set and add rules to it using the DBMS_STREAMS_ADM package or the DBMS_RULE_ADM package. If you specify NULL and the remove_rule_set parameter is set to FALSE, then the procedure retains any existing positive rule set. If you specify NULL and the remove_rule_set parameter is set to TRUE, then the procedure removes any existing positive rule set. See Also: Oracle Streams Concepts and Administration for more information about the changes that can be captured by a capture process remove_rule_set If TRUE, then the procedure removes the positive rule set for the specified capture process. If you remove a positive rule set for a capture process, and the capture process does not have a negative rule set, then the capture process captures all supported changes to all objects in the database, excluding database objects in the SYS and SYSTEM schemas. If you remove a positive rule set for a capture process, and the capture process has a negative rule set, then the capture process captures all supported changes that are not discarded by the negative rule set. If FALSE, then the procedure retains the positive rule set for the specified capture process. If the rule_set_name parameter is non-NULL, then this parameter should be set to FALSE. start_scn A valid SCN for the database from which the capture process should start capturing changes . The SCN value specified must be greater than or equal to the first SCN for the capture process. An error is returned if an invalid SCN is specified. use_database_link If TRUE, then the capture process at a downstream database uses a database link to the source database for administrative purposes relating to the capture process. If you want a capture process that is not using a database link currently to begin using a database link, then specify TRUE. In this case, a database link with the same name as the global name of the source database must exist at the downstream database. If FALSE, then either the capture process is running on the source database, or the capture process at a downstream database does not use a database link to the source database. If you want a capture process that is using a database link currently to stop using a database link, then specify FALSE. In this case, you must prepare source database objects for instantiation manually when you add or change capture process rules that pertain to these objects. If NULL, then the current value of this parameter for the capture process is not changed. first_scn Specifies the lowest SCN in the redo log from which a capture process can capture changes. If you specify a new first SCN for the capture process, then the specified first SCN must meet the following requirements: It must be greater than the current first SCN for the capture process. It must be less than or equal to the current applied SCN for the capture process. However, this requirement does not apply if the current applied SCN for the capture process is zero. It must be less than or equal to the required checkpoint SCN for the capture process. An error is returned if the specified SCN does not meet the first three requirements. See “Usage Notes” for information about determining an SCN value that meets all of these conditions. When the first SCN is modified, the capture process purges information from its LogMiner data dictionary that is required to restart it at an earlier SCN. Also, if the specified first SCN is higher than the current start SCN for the capture process, then the start SCN is set automatically to the new value of the first SCN. negative_rule_set_name The name of the negative rule set for the capture process. The negative rule set contains the rules that instruct the capture process to discard changes. If you want to use a negative rule set for the capture process, then you must specify an existing rule set in the form [schema_name.] rule_set_name. For example, to specify a negative rule set in the hr schema named neg_capture_rules, enter hr.neg_capture_rules . If the schema is not specified, then the current user is the default. An error is returned if the specified rule set does not exist. You can create a rule set and add rules to it using the DBMS_STREAMS_ADM package or the DBMS_RULE_ADM package. If you specify NULL and the remove_negative_rule_set parameter is set to FALSE, then the procedure retains any existing negative rule set. If you specify NULL and the remove_negative_rule_set parameter is set to TRUE, then the procedure removes any existing negative rule set. If you specify both a positive and a negative rule set for a capture process, then the negative rule set is always evaluated first. remove_negative_rule_set If TRUE, then the procedure removes the negative rule set for the specified capture process. If you remove a negative rule set for a capture process , and the capture process does not have a positive rule set, then the capture process captures all supported changes to all objects in the database, excluding database objects in the SYS and SYSTEM schemas. If you remove a negative rule set for a capture process, and a positive rule set exists for the capture process, then the capture process captures all changes that are not discarded by the positive rule set. If FALSE, then the procedure retains the negative rule set for the specified capture process. If the negative_rule_set_name parameter is non-NULL, then this parameter should be set to FALSE. capture_user The user in whose security domain a capture process captures changes that satisfy its rule sets and runs custom rule-based transformations configured for capture process rules. If NULL, then the capture user is not changed. To change the capture user, the user who invokes the ALTER_CAPTURE procedure must be granted DBA role. Only the SYS user can set the capture_user to SYS. If you change the capture user, then this procedure grants the new capture user enqueue privilege on the queue used by the capture process and configures the user as a secure queue user of the queue. In addition, make sure the capture user has the following privileges: EXECUTE privilege on the rule sets used by the capture process EXECUTE privilege on all rule-based transformation functions used in the rule set EXECUTE privilege on all packages, including Oracle-supplied packages, that are invoked in rule-based transformations run by the capture process These privileges must be granted directly to the capture user. They cannot be granted through roles. By default, this parameter is set to the user who created the capture process by running either the CREATE_CAPTURE procedure in this package or one of the following procedures in the DBMS_STREAMS_ADM package with the streams_type parameter set to capture: ADD_GLOBAL_RULES ADD_SCHEMA_RULES ADD_TABLE_RULES ADD_SUBSET_RULES Note : If the specified user is dropped using DROPUSER … CASCADE, then the capture_user setting for the capture process is set to NULL automatically. You must specify a capture user before the capture process can run. checkpoint_retention_time Either the number of days that a capture process should retain checkpoints before purging them automatically, or DBMS_CAPTURE_ADM.INFINITE if checkpoints should not be purged automatically. If NULL, then the checkpoint retention time is not changed. If a number is specified, then a capture process purges a checkpoint the specified number of days after the checkpoint was taken. Partial days can be specified using decimal values. For example, .25 specifies 6 hours. When a checkpoint is purged, LogMiner data dictionary information for the archived redo log file that corresponds to the checkpoint is purged, and the first_scn of the capture process is reset to the SCN value corresponding to the first change in the next archived redo log file. See Also: Oracle Streams Concepts and Administration for more information about checkpoint retention time
NEGATIVE_RULE_SET_OWNER VARCHAR2 (30) Owner of the negative rule set used by the capture process for filtering
SOURCE_DBID NUMBER Database ID of the source database
USE_DATABASE_LINK VARCHAR2 (3) Indicates whether the source database name is used as the database link to connect to the source database from the downstream database (YES) or not (NO). If the capture process was created at the source database, then this column will be null.
Description
MAX_CHECKPOINT_SCN NUMBER System change number (SCN) at which the last checkpoint was taken by the capture process
ORA-06512: at “SYS.DBMS_CAPTURE_ADM”, line 212
Parameters Table 20-4 ALTER_CAPTURE Procedure Parameters Parameter
2011 年 11 月 23 日
ERROR_MESSAGE VARCHAR2 (4000) Error message if the capture process was aborted
STATUS VARCHAR2 (8) Status of the capture process:
SQL> exec dbms_capture_adm.alter_capture (capture_name => EST_SCHEMA_CAP_QUEUE start_scn => dbms_flashback.get_system_change_number);
DOWNSTREAM LOCAL Syntax DBMS_CAPTURE_ADM.ALTER_CAPTURE (capture_name IN VARCHAR2, rule_set_name IN VARCHAR2 DEFAULT NULL, remove_rule_set IN BOOLEAN DEFAULT FALSE, start_scn IN NUMBER DEFAULT NULL, use_database_link IN BOOLEAN DEFAULT NULL, first_scn IN NUMBER DEFAULT NULL, negative_rule_set_name IN VARCHAR2 DEFAULT NULL, remove_negative_rule_set IN BOOLEAN DEFAULT FALSE, capture_user IN VARCHAR2 DEFAULT NULL, checkpoint_retention_time IN NUMBER DEFAULT NULL);
FIRST_SCN NUMBER System change number (SCN) from which the capture process can be restarted
QUEUE_NAME VARCHAR2 (30) NOT NULL Name of the queue used for staging captured changes
PL / SQL procedure successfully completed DBA_CAPTURE displays information about all capture processes in the database. Column Datatype NULL
begin dbms_capture_adm.alter_capture (capture_name => EST_SCHEMA_CAP_QUEUE start_scn => dbms_flashback.get_system_change_number); end;
Description
ORA-06512: at “SYS.DBMS_CAPTURE_ADM_INTERNAL”, line 166
ERROR_NUMBER NUMBER Error number if the capture process was aborted
ORA-26666: cannot alter STREAMS process TEST_SCHEMA_CAP_QUEUE
CAPTURE_NAME VARCHAR2 (30) NOT NULL Name of the capture process
ORA-06512: at line 2
SOURCE_DATABASE VARCHAR2 (128) Global name of the source database
QUEUE_OWNER VARCHAR2 (30) NOT NULL Owner of the queue used for staging captured changes
SOURCE_RESETLOGS_SCN NUMBER Resetlogs system change number (SCN) of the source database
PL / SQL procedure successfully completed
LOGFILE_ASSIGNMENT VARCHAR2 (8) Logfile assignment type for the capture process:
exec dbms_capture_adm.alter_capture (capture_name => EST_SCHEMA_CAP_QUEUE start_scn => dbms_flashback.get_system_change_number);
START_SCN NUMBER System change number (SCN) from which the capture process will start to capture changes
SQL> exec dbms_capture_adm.stop_capture (capture_name => EST_SCHEMA_CAP_QUEUE ;
CAPTURE_TYPE VARCHAR2 (10) Type of the capture process:
APPLIED_SCN NUMBER System change number (SCN) of the most recent message dequeued by the relevant apply processes. All changes below this SCN have been dequeued by all apply processes that apply changes captured by this capture process.
RULE_SET_NAME VARCHAR2 (30) Name of the positive rule set used by the capture process for filtering
IMPLICIT EXPLICIT STATUS_CHANGE_TIME DATE Time that the STATUS of the capture process was changed
SOURCE_RESETLOGS_TIME NUMBER Resetlogs time of the source database
VERSION VARCHAR2 (64) Version number of the capture process
NEGATIVE_RULE_SET_NAME VARCHAR2 (30) Name of the negative rule set used by the capture process for filtering
REQUIRED_CHECKPOINT_SCN NUMBER Lowest checkpoint SCN for which the capture process requires redo information

Absolute Number one eighth to mention car operation YF








that car through the next election, what mid-level sedan, had a few faces. Selected when the original car, but also with the flow, take a look at Japanese cars, Camry, too old lady face, PASS; Accord, five-speed automatic. Forget it; sounds of nature, of the home too; European and American systems, Buick, before the family bought the old Regal had been hurt, and that space is a little bit. Volkswagen turbo system, and burning too much oil. My uncle and the uncle of the Passat and MAGOTAN put a bottle in the trunk oil reserve. This year, the petrol would have enough high, and oil costs also along for the ride. Car is a long-term use of the goods, or comfortable with the good. What what TSI DSG, daily life are clouds, but not every day drag racing. Looks around, nothing like it. Day from our Taishan Road, Shantou City, passing through the North Lake District, 4S shop in front of modern advertising, is the eighth generation Sonata, very beautiful, was a bit tempted, and ready to find time to look at. Year, or Sonata, when made of fine, when I opened the old Sonata had, really comfortable. Later Sonata, driving up what is a quiet, absolutely comparable Lexus, get a few days to see the car 4S, all of a sudden be attracted, is really too beautiful models, configuration is also OK, The most important thing is safety. The United States out of the new crash test standards, only the eighth generation Sonata and do not touch me got a new 5-star score system. I was more afraid of death, fear of people in this life is dead, the money was gone, ha ha. BMW being we can not afford to buy a Sonata or can. What other properties I do not go into details, online overwhelming. I was on the next set, and to lay on the set top with. Market price on April 8 came out, fortunately, is still expected, 24.99W. What concessions would not have thought, Who is the new it. But Beijing Hyundai factory set to the first 10,000 cars get a Samsung P1000 Tablet PC, the thing can actually call, seven inches, on the ear. Then north Shantou 4S shops are also sent a station ipod nano, said South Korea travel to participate in sweepstakes and see my luck, ha ha. Mention of the car the day before yesterday, yesterday to the card, selecting a number, but also home to wait. Knew not choose personalized, and most hate to wait
3 on the production of, wow ha ha, the first absolute




Janet Jackson “NumberOnes”




· Sentimental over female-to-mature Jie: 23 What kind of backless age?



· Xiang postpartum the first full moon appeared just temporarily take her work

· Tao romance had been playing with the exposure 11 girlfriend, meet the parents [map]




< br />

Length: 120 minutes


< br />
[subject] Zhao cerebral hemorrhage emergency hospital

















[subject] Golden Week travel map







[feature] of the Tenth Sichuan TV Festival

< / table>


[topic] The 18th Golden Rooster and Hundred Flowers Film Festival


[subject] Fui Because the cancer death

[subject] Japanese actress Noriko Sakai drug
Director: Catherine Hardwicke


< td height = "74">


· “Storm 2″ “October Rising” “Hunter”






· “G-Force,” “Mars right”




[feature] new album in November 2009 inventory

[subject] committed suicide for love of the entertainment star

Release Date: November 25, 2009
< tr>
· Sun Li “first love boyfriend” exposure Qian Feng frustration: Friends do not take the hype

· Gong Li was traced to 11 sets for sale due to emigration Villa bid 45 million in Shenzhen

< br />

This is our NUMBER ONE

Reporters learned that the Cannes Film Festival, Chinese web site set up, this is only the beginning, there will be more and more Chinese Film Festival, set up web pages. Reporters from an international producer was informed, the Berlin Film Festival and Venice Film Festival, Cannes, have begun to consider the follow soon open Chinese website, build up a communication platform with the Chinese fans.
[has 0 -bit users to express their views, click View. ]
“Natural disasters”
frequently visited the Cannes Film Festival this year, China Taiwan and Hong Kong films are not nominated, I hope in the Mainland, in addition to Wang Xiaoshuai addition, Jia Zhangke “Marine Legends” finalists “a compelling unit. ”
Chinese Cannes opening page to the Chinese fans show good performance. Indeed, the Chinese mainland box office last year, $ 6.2 billion, an increase at an alarming rate and unlimited potential, the Chinese film market to the global film people envious. Including “2012″, “Alice in Wonderland” in the film have anything to do with China, to “please” the Chinese audience. Earlier this year “Avatar” film leaving the world with admiration for the Chinese market, “China film market is too huge, and it has become a national film of gold can not be ignored.” Chinese director Jia Zhangke told reporters yesterday lamented said. Jia said the festival official website for the first time the establishment of Chinese web pages have been described to some extent, a Cannes Film Festival on the importance of the Chinese film market.
and Wang Xiaoshuai “sunshine Chongqing” Cannes finalists were two unit, Jia Zhangke, said: “We are encouraging each other along the way, this time with the finalists, really like a good script, we will be holding a hand to compete with others. “for” Marine Legends “, Jia said, because the pay, so it has never been so eager to winning.
hurricane. May 4, suffered a rare storm, so that the Cannes town suffered heavy losses, according to local residents described the sea waves coming up to 6 meters to the overwhelming pressure to the beach. Direct result is the famous Cannes Croix Zeit Street suffered storm Kuang Xi, who is held in celebration offers luxury waterfront venue almost entirely submerged beach, luxury boats docked at the shore, cruise ships are also damaged . According to the French Weather Bureau, the weather, the opening day of the Cannes Film Festival this year is also likely to encounter rain. Rain, walking the red carpet, Cannes, this estimate will be some deserted.
63-year-old Cannes sigh
2010-05-12 04:50:00 Source: China Daily (Xi n) pasting 0 handsets to see this news

is our NUMBER ONE
63rd Cannes Film Festival will be held May 12-May 23 at the Wang Xiaoshuai “sunshine Chongqing” as the sole representative of Chinese-language films compete for Palme d r, Jia Zhangke “Marine Legends” will also appear together.
  • man-made disaster even take Cannes affairs of men should not “2010/05/12
  • News
    film” Sea legend “
    Chinese website will not only allow the establishment of the Chinese audience more quickly understand the Cannes Film Festival all relevant information, some of the films to be screened can also use this platform to the Chinese audience to better promote themselves for more successful to enter the Chinese film market. After all, they want to film festivals or film exhibitors, participating films sold in China.
    Jia Zhangke was “a series of unexpected”
  • documentary exhibition “offensive” against Prime Minister Berlusconi of Italy Cannes Film Festival 2010/05/11

    on Cannes Film Festival, Jia Zhangke Chinese Web of
    resistance. Just yesterday, the Italian Culture Minister Sandro Bondi announced by the Italian director Sabine ancient Zandi directed the documentary “Aquila: Italy shock”, allegedly to discredit the Italian Prime Minister Silvio Berlusconi, but the 63rd Cannes Film Festival is The film screenings will be selected for special units, the Italian government would not attend the upcoming Cannes Film Festival, as an expression of protest. forwards to microblogging
    This edition written by the reporter Tang Aiming
    netease
    63rd Cannes Film Festival, the ill-fated, volcanic ash and wind are eyeing it. More than that, it also suffered internal and external, met with some resistance and blocked.
  • documentary “offensive” against Prime Minister Berlusconi of Italy Cannes Film Festival 2010/05/11
    ash. April, due to the volcanic eruption in Iceland, so that “Iron Man 2″ premiere in a big way in France plans. Cannes organizers said on its website, despite the Icelandic volcanic ash caused by the recent Cannes, Nice, France from 9 airports canceled some flights, but many stars still ready to pass go.
  • 63rd Cannes Film Festival opened Imaginations 12 Palme d r competition 2010/05/12
    In addition to Chinese, the Cannes Film Festival official website of the newly added language also includes Spanish, Portuguese, Japanese, Arabic and Russian. Together with the original English, French, Cannes Film Festival official website provides information services in eight languages.
    This is not said Jia Zhangke doing “Marine Legends” later, when encountered many twists and turns, “later in Thailand, met Red Shirts; when you want to send Cannes, met ash, so that the film twists and turns in front of it to the Cannes official. “
    the 63rd Cannes Film Festival on April 15 announced the official festival website for the first time established a Chinese page. Open the Cannes Film Festival official website, the bottom line in the word “welcome” word people very friendly. Reporters opened the official website, its use Simplified Chinese, “This will help more Chinese people can pay attention to the Cannes Film Festival.” Festival main 席吉尔雅格布 has said this.
    Jia Zhangke told reporters yesterday afternoon, said, “Marine Legends” take a year, and for as long as four months of post-production, his almost exhausted, “This is my biggest physical exertion from the film has a shot , I am really tired. “And one day, his eyes were cold fireworks burns, was prepared to the opening of the Expo to postpone the premiere of the film eventually, and because the film continuously cut his eyes out of the question, resulting pseudo myopia, are still recovering.

    (This article Source: China Daily. more exciting content, please visit Huashang http://www.hsw.cn/)

    Number (N) ine released Odessa crooked jogging shoes laces Distressed treatment (Figure)

    More information

    footwear
  • supply and demand
  • Products


    Images News

  • website

    2011 Spring New York Fashion Week
  • information

    selected topics

  • winter essential modernist style men boots (Figure)
  • UGG and then “upgrade” to go wild line (Figure)
  • socks shoes show the four streets with the most IN (map)
  • possession of one pair to the United States high heels make you paranoid (Figure)
  • winter shoes to match the most in the pants and skirts? (Figure)
  • visvim released Fall 2010 FIL Limited Oxford carved boots (Figure)
  • visvim joint Moncler outdoor work boots on sale Hiking Boots (Figure)
  • Uniform Experiment introduced Zoom Air Tennis Classic shoes (Figure)
  • Nike SB released Street Fighter Street Fighter series of skateboard shoes complete details (Figure)
  • Nike Sportswear Fall 2010 Dunk Hi Zoom published shoes (Figure)

  • 谢丽尔科尔 sun goddess sexy hot pants legs (Figure)

  • 2010 China Best Professional Fashion announced the nomination model (Figure)

  • Zhao Wei elegant new attitude landed the cover of fashion magazines (Figure)

  • supermodel sexy leopard wild charm metallic extremely large ( Figure)

  • 2010 weekly briefing apparel industry first 211 [2010/9/13-9/19]
  • Where the object: the Internet age Slogans carnival
  • “fast fashion” slow thinking
  • Twelfth Jiangsu International Fashion Festival
  • 2010 Shanghai International popular yarn Exhibition


    Hot News


    clothing Join more brand brand investment agent information

  • business

  • jogging shoes Odessa Number (N) ine shoes brand
  • brand
  • [raw material markets] market polyester filament market one week review (9.03-9.09)
  • [brand new] Ron Herman the first anniversary of Mastermind Japan Japan branch of limited series preview (Figure )
  • [brand T units] Chinese apparel brand apparel business city big advantages of joint exercise of independent (b) (Photos)
  • [style sportsman] loose curling pants sportsman early fall of choice (Figure)
  • [China News] Ningxia cashmere industry to build support for “international quality cashmere are”
  • [bag] Lancel (Lancel) 2010 Fall Bags New Products: The quality of interpretation of the new century fashion!
  • [brand T units] and the Idol Mind American brand No.A new international fashion city in the Cotton Tree release (Photos)
  • [watch] Rolex Oyster Perpetual log type of moon phase watches (Figure)

    Copenhagen International Fashion Week Spring 2011

  • Lin Shaojun: Chongqing, the largest private car dealers work hard legend

  • (20)
  • (39)


  • (35)


  • [survey] Touran cost / Odyssey MPV keep a car, etc. 5 PK
    sales increase 48 % selling British car What is the secret?

    cohabitation 120,000 yuan and fashion a stylish and compact range of cars recommended

  • New Rand Road, Chak cool release to improve the appearance / configuration upgrade


  • Chevron Rui Lan Mai Po struck in February! Intermediate models rival
  • new Mondeo / Buick car will be introduced next Encore
    England SX7 Geely compact SUV, a car and more brand exposure

  • new Accord Qiangxian Kan nine North American auto show concept car appearance



  • (27)

    2012 Chery QQ3 models officially listed for sale 3.09-5.09 ten thousand yuan
  • (30)
    < img height = "11" alt = "" src = "http://auto.sohu.com/upload/20080225auto/images/c05.gif" width = "17">


  • (49)
  • Volkswagen Jetta released the U.S. version of the hybrid hundred kilometers 5.2 liters


  • (41)
  • (16)


    Volkswagen released the U.S. version of the hybrid Jetta 5.2 l hundred kilometers
    Geely sold nearly 400,000 annual export growth rate of 120%

    Zhengzhou Yutong deny kidnap school bus standards that the U.S. standard thread your
    Top
  • 2012 Chery QQ3 models officially listed for sale 3.09-5.09 ten thousand yuan
    lucky ” security card “initial success will be leveraging the European market

  • and fashion cohabitation 120,000 yuan range stylish and compact model recommended

    News Top

    New Sunny / New Audi A6 / new Fox variety of new vehicles Photos
  • New Sunny / New Audi A6 / new Fox variety of new vehicles Photos
  • (331)
  • one week the prices of Billboard: car prices TOP10 / increase TOP5
    new Mondeo / Buick car will be introduced next Encore
  • (14)

  • Number (N) ine latest Odessa American running shoes on sale crooked shoelaces (Figure)

  • < h3> Xu Qing excellent Yadeng customized fashion magazine tells the story behind the brand (Figure)

  • New York Fashion Week Spring 2011 Rebecca Minkoff release (Figure)

  • full Secret made with pure beef Lady Gaga “barbecue dress”

  • old domestics sell Nike shoes improved price back shoes to open flagship store in Shanghai < br />

  • [China News] wholesale children wear market in Hainan price increase 2-4 yuan
  • [star show clothing] Jin Haixin latest retro style of playing fairy god exquisite mirror (Figure)
  • [accessories - jewelry] Zaigua retro traditional court sought after jewelry (Figure)
  • [China News] Northern textile industry cluster effect of highlighting
  • [network marketing] luxury brand of B2C e-commerce strategy (Figure)
  • [marketing strategy] interpretation of the capital four major shopping malls ultimate marketing
  • [business story] Ruifu Xiang Qi Qiulan Chairman: Chinese silk, the world surprise
  • [ Exhibition news] unmatched visual feast – The 6th Shanghai International Lingerie charm showing (Figure)


  • Adidas Originals Attitude Vulc West shoes (Figure )
  • Quoddy introduced Vibram outsole Deck Chukka shoes (Figure)
  • Converse Converse shoes sale 2010 autumn brown velvet models (Figure)
  • actress High Street, thanks to single out high heels pedal Fan T station (Figure)
  • Bottega Veneta men shoes business gentleman winter must-have item (Figure)
  • to Jimmy Choo for the Health of the ladies (Figure)
  • easily just by age plus a pair of shoes (Figure)
  • HYSTERIC GLAMOUR 2010 autumn and winter shoes MAKE ME SMILE (Figure)
  • Nike Sportswear Dunk High shoes on sale (Figure)
  • Kinetics7 anniversary of the classic three-way joint outdoor boots (Figure)
  • supply and demand


    Images News


    fine selected topics


    2011 spring and summer New York Fashion Week
  • Copenhagen International Fashion Week Spring 2011
  • 2010 apparel industry first 211 weekly briefing [2010/9/13-9/19]
  • Where the object: the Internet age slogan carnival
  • “fast fashion” slow thinking
  • Twelfth Jiangsu International Fashion Festival
  • products

    Beijing Tomitomo Software

    Hot News
  • information
  • website < br />
  • brand

    More Footwear News
  • business

  • running shoes Number (N) ine Converse shoes, the United States
    < h4> more brand clothing brand Merchants Join Agent

  • Zhang Guoqiang big New Year wish friends ToBeNumberOne2011 Sina big New Year Stars


    Video: New Year stars talked about the 2010 Zhang Yadong bring Video: Zhang Guoqiang big New Year wish friends To Be Number One

    Video Entertainment

    Video: Honglei New Year to friends and girlfriend Sina Berlin valentine
    Video: Jan Lamb wearing a tiger hat New Year Sammy small instrument play Flirting Scholar

  • Video: New Year couplets written Xiao Huang-chi Huang Hu fantasy is Amber Kuo
  • Video: New Year Sina users Honglei to Berlin with his girlfriend valentine day
    Video: Xiao Huang-chi wrote couplets New Year fantasy Huang Hu is Amber Kuo

    Video: Goat and Big Big Wolf let the Rabbit The perfect New Year together right < br />

    related videos
    25:25:25
  • Video: New Year stars talked about the 2010 Zhang Yadong bring” change “mood
    25:25: 25





    25 : 25:25
    25:25:25

  • Collections: 2011 Stars Sina big New Year






  • 1
    25:25:25

    Video: Zhang Guoqiang big New Year wish friends To Be Number One
    25:25:25
    Video: Lin and Li Chen Sixuan public gathering homogeneous models play Tiger New Year
    Video: Lin and Li Chen Sixuan models play public gathering Tiger New Year together




  • hot video

  • Record number of green bay packers the worst defensive record

    control.src = “http://comment.blog.hexun.com/inc/morearticles/getarticlemore.aspx?aid=72139419