Oracle NoSQL through Servlet.
Hello Everyone,
I am trying to execute the nosql operations on server through servlet. I want to make an client server application but dont know why the CONNECTION TO KVSTORE IS NOT ESTABLISHED WHILE EXECUTING ON SERVLET.
So is there any separate configuration needed to do so?
Thanks In Advance.
Could you be more explicit please? What is the exact error you are seeing?
Please explain in detail what is the issue you're facing.
If you want to access an Oracle NoSQL Database KVStore through a servlet the best way would be to use a ServletContextListener in your web app that gets the KVStore handle and places it in application/context scope as an attribute (so that all servlets and JSPs would have access to it) and also closes the handle when the web app gets shut down. You could even supply the store name, store host name and store host port (the helper host port -- hostName:hostPort) through the web.xml web app config file.
Here is a simple example of such a ServletContextListener:
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;
import oracle.kv.KVStore;
import oracle.kv.KVStoreConfig;
import oracle.kv.KVStoreFactory;
* KVStoreClientContextListener implements ServletContextListener, hence it will be
* invoked when the application context is initialized and destroyed.
* @author Andrei Costache
@WebListener
public class KVStoreClientContextListener implements ServletContextListener {
@Override
public void contextInitialized(ServletContextEvent sce) {
ServletContext sc = sce.getServletContext();
KVStore ondbstore = null;
try {
// Try to get the store name, store host name and store host port from web.xml, as context attributes.
// If they are not available, then default to the values specific to a default KVLite instance.
String storeName = (String) sc.getAttribute("storeName");
String hostName = (String) sc.getAttribute("hostName");
String hostPort = (String) sc.getAttribute("hostPort");
if (storeName == null) {
storeName = "kvstore";
if (hostName == null) {
hostName = "localhost";
if (hostPort == null) {
hostPort = "5000";
// Get the KVStore and place it as an atribute in application/context scope.
ondbstore = KVStoreFactory.getStore(new KVStoreConfig(storeName, hostName + ":" + hostPort));
sc.setAttribute("ondbstore", ondbstore);
} catch (Exception e) {
sc.log("Could not get a KVStore instance");
@Override
public void contextDestroyed(ServletContextEvent sce) {
KVStore ondbstore = null;
ServletContext sc = sce.getServletContext();
try {
ondbstore = (KVStore) sc.getAttribute("ondbstore");
if(ondbstore != null) {
ondbstore.close();
} catch (Exception e) {
sc.log("Could not successfully close the KVStore handles");
In your servlets or JSPs you will simply retrieve the KVStore handle from the servlet context, where it is found as a context scope attribute:
KVStore ondbstore = (KVStore) getServletContext().getAttribute("ondbstore");
and do whatever operations you want using the KVStore handle.
You will need the NoSQL Database kvclient.jar -- either your web container / application server can load it, or you could copy it under the WEB-INF/lib directory so that it gets loaded when your web app gets deployed and started. (kvclient.jar is found under kv-M.N.P/lib).
Regards,
Andrei
Similar Messages
-
Hi,
I am able to read Arabic characters through servlets and able to display in a browser .
But when I try to insert Arabic characters to Oracle Database through servlets ,
it is saved as ??????? or inverted question marks
Kindly help me resolve this issue.
Thanks and Regards
Jailaniand since email replies won't work with the "<>" chars in them:
in application.cfm
<cfset setEncoding("url","UTF-8")>
<cfset setEncoding("form","UTF-8")>
<cfcontent type="text/html; charset=UTF-8">
at the top of your cf pages add:
<cfprocessingdirective pageEncoding="UTF-8"> -
Hi,
We have installed BI Publisher as part of OBIEE 10.1.3.4.1. Our J2EE Application Server is Apache Tomcat 5.5.2.7
After manually deploying the xmlpserver.war in Tomcat and doing the changes to xmlp-server-config.xml
When i am trying access the URL, its resulting into following Tomcat Error:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
oracle.apps.xdo.servlet.GlobalContext.getProperty(GlobalContext.java:182)
oracle.apps.xdo.servlet.security.SecurityFilter.handleSSO(SecurityFilter.java:318)
oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:108)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.27 logs.
Before doing the changes, when i tried to access via URL, it was showing up BI Publisher Login Screen.
Any idea whats wrong?
I have also copied the fonts to the JRE/lib/fonts folder.
Thanks,
ShalabhsnehaI went through Tomcat Logs & found following full trace in catalina.out
- Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at oracle.apps.xdo.servlet.GlobalContext.getProperty(GlobalContext.java:182)
at oracle.apps.xdo.servlet.security.SecurityFilter.handleSSO(SecurityFilter.java:318)
at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:108)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595) -
Working with markups through servlet
Hello,
There is several problems with using Autovue through servlet.
Fabula:
Servlet receives http request, connect to the vue server (vue servlet via ServerControl), load .dwg file into
vuebean by vuebean.setFile(new DocID(fileName)) and load markup by simple calling markupbean.readMarkup(FileInputStream instance) method.
I get a markup file name by parsing 'markups.map'. Servlet modifies markup by http request parameters (set new FillColor, for example) and saves markup file -
markupbean.writeMarkup(FileOutputStream) - very simple process.
Problems:
1. After markup changing i need to open dwg with markup (in applet), but i don't know how i can to do this. jVue.openMarkup() doesn't work - i don't understand what parameters are needed.
2. When markup open via jVue applet GUI, changed TextBox elements are not visible, but presents in markup items list.
If TextBox is selected it becomes visible! If I change the text or position of TextBox, it will become visible (without selection). This situation applies only to TextBoxes.
Any suggestions how I can load markups into GUI and fix visibility of TextBoxes after saving via FileOutputStream.Hello,
May I point out some issues where you are implementing code that is not supported nor documented (and probably will not) and consequently help on those topics is not available
1. I get a markup file name by parsing 'markups.map' -> not documented, not supported, could change on any release.
2. markupbean.writeMarkup(FileOutputStream) -> where? local datastore is not documented, will need synching, writing to it directly not supported, could change on any release.
Stating it as a simple action is probably not the best way to describe a over-complicated solution piggybacking on a closed (undocumented) implementation
Hence my recommendation for an open and properly documented platform
Perhaps you should have started by describing what you are trying to do
If what you want to implement is to save markups with a predefined name, then your solution is an overkill (and goes in the wrong direction)
If you would be kind enough to
1. follow this forum's rules ie https://forums.oracle.com/forums/ann.jspa?annID=1527
2. properly state what you are trying to implement in another thread, if possible as it will make search/review easier to the rest of the community
3. Have a tittle that is descriptive enough
4. is this solution required to work on a cluster (ie more than one AV server)? -
environment:
Linux namenode 2.6.9-11.ELhugemem #1 2005 i686 i686 i386 GNU/Linux
jdk 1.6
oracle nosql kv-ee-1.2.123.tar.gz
when I run command:
java -jar lib/kvstore-1.2.123.jar kvlite
occurs exception :
Process exiting due to fault
java.lang.ExceptionInInitializerError
at com.sleepycat.je.rep.ReplicationMutableConfig.<clinit>(ReplicationMutableConfig.java:269)
at oracle.kv.impl.param.ParameterUtils.getRepEnvConfig(ParameterUtils.java:97)
at oracle.kv.impl.param.ParameterUtils.getRepEnvConfig(ParameterUtils.java:92)
at oracle.kv.impl.admin.Admin.createReplicationConfig(Admin.java:280)
at oracle.kv.impl.admin.Admin.<init>(Admin.java:225)
at oracle.kv.impl.admin.AdminService.configure(AdminService.java:252)
at oracle.kv.impl.admin.CommandServiceImpl$33.execute(CommandServiceImpl.java:629)
at oracle.kv.impl.fault.ProcessFaultHandler.execute(ProcessFaultHandler.java:142)
at oracle.kv.impl.admin.CommandServiceImpl.configure(CommandServiceImpl.java:624)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalArgumentException: Invalid hostname: localhost The host name is not associated with this machine.
at com.sleepycat.je.rep.impl.RepParams$3.validateValue(RepParams.java:247)
at com.sleepycat.je.config.ConfigParam.<init>(ConfigParam.java:61)
at com.sleepycat.je.rep.impl.RepParams$3.<init>(RepParams.java:217)
at com.sleepycat.je.rep.impl.RepParams.<clinit>(RepParams.java:213)
... 23 more
KVLite: exception in start: java.rmi.ServerError: Error occurred in server thread; nested exception is:
java.lang.ExceptionInInitializerError
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:333)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
at $Proxy1.configure(Unknown Source)
at oracle.kv.impl.admin.CommandServiceAPI.configure(CommandServiceAPI.java:354)
at oracle.kv.util.kvlite.KVLiteAdmin.deployStore(KVLiteAdmin.java:57)
at oracle.kv.util.kvlite.KVLiteAdmin.run(KVLiteAdmin.java:42)
at oracle.kv.util.kvlite.KVLite.start(KVLite.java:386)
at oracle.kv.util.kvlite.KVLite.start(KVLite.java:354)
at oracle.kv.util.kvlite.KVLite.main(KVLite.java:451)
at oracle.kv.impl.util.KVStoreMain$1.run(KVStoreMain.java:112)
at oracle.kv.impl.util.KVStoreMain.main(KVStoreMain.java:319)
Caused by: java.lang.ExceptionInInitializerError
at com.sleepycat.je.rep.ReplicationMutableConfig.<clinit>(ReplicationMutableConfig.java:269)
at oracle.kv.impl.param.ParameterUtils.getRepEnvConfig(ParameterUtils.java:97)
at oracle.kv.impl.param.ParameterUtils.getRepEnvConfig(ParameterUtils.java:92)
at oracle.kv.impl.admin.Admin.createReplicationConfig(Admin.java:280)
at oracle.kv.impl.admin.Admin.<init>(Admin.java:225)
at oracle.kv.impl.admin.AdminService.configure(AdminService.java:252)
at oracle.kv.impl.admin.CommandServiceImpl$33.execute(CommandServiceImpl.java:629)
at oracle.kv.impl.fault.ProcessFaultHandler.execute(ProcessFaultHandler.java:142)
at oracle.kv.impl.admin.CommandServiceImpl.configure(CommandServiceImpl.java:624)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalArgumentException: Invalid hostname: localhost The host name is not associated with this machine.
at com.sleepycat.je.rep.impl.RepParams$3.validateValue(RepParams.java:247)
at com.sleepycat.je.config.ConfigParam.<init>(ConfigParam.java:61)
at com.sleepycat.je.rep.impl.RepParams$3.<init>(RepParams.java:217)
at com.sleepycat.je.rep.impl.RepParams.<clinit>(RepParams.java:213)
... 23 moreHi, I have followed your way, rm -rf kv related, but the exception also happend. My steps are followed:
[sunyao@namenode tools]$ hostname
namenode
[sunyao@namenode tools]$ ls
jdk1.6.0_20 jdk-6u20-linux-i586.bin kv-ee-1.2.123.tar.gz nohup.out
[sunyao@namenode tools]$ tar -zxvf kv-ee-1.2.123.tar.gz
kv-1.2.123/
kv-1.2.123/bin/
kv-1.2.123/bin/kvctl
kv-1.2.123/bin/run-kvlite.cmd
kv-1.2.123/bin/run-kvlite.sh
kv-1.2.123/doc/
kv-1.2.123/doc/AdminGuide/
kv-1.2.123/doc/AdminGuide/KVStoreArchitecture.jpg
kv-1.2.123/doc/AdminGuide/Oracle-NoSQLDB-Admin.pdf
kv-1.2.123/doc/AdminGuide/RepGroups.jpg
kv-1.2.123/doc/AdminGuide/admin-cli.html
kv-1.2.123/doc/AdminGuide/admin-console.html
kv-1.2.123/doc/AdminGuide/backup.html
kv-1.2.123/doc/AdminGuide/configure-using-cli.html
kv-1.2.123/doc/AdminGuide/configure.html
kv-1.2.123/doc/AdminGuide/configurekvstore.jpg
kv-1.2.123/doc/AdminGuide/deploySN.jpg
kv-1.2.123/doc/AdminGuide/deployadminreplica.jpg
kv-1.2.123/doc/AdminGuide/deployingRepNodes.jpg
kv-1.2.123/doc/AdminGuide/deploymentupdate.html
kv-1.2.123/doc/AdminGuide/fixhaportrange.html
kv-1.2.123/doc/AdminGuide/gettingStarted.css
kv-1.2.123/doc/AdminGuide/gui-install.html
kv-1.2.123/doc/AdminGuide/gui.html
kv-1.2.123/doc/AdminGuide/index.html
kv-1.2.123/doc/AdminGuide/install-config.html
kv-1.2.123/doc/AdminGuide/install.html
kv-1.2.123/doc/AdminGuide/installation.html
kv-1.2.123/doc/AdminGuide/installplanning.html
kv-1.2.123/doc/AdminGuide/introduction.html
kv-1.2.123/doc/AdminGuide/logs.jpg
kv-1.2.123/doc/AdminGuide/monitoring.html
kv-1.2.123/doc/AdminGuide/plans.html
kv-1.2.123/doc/AdminGuide/plansandconfig.jpg
kv-1.2.123/doc/AdminGuide/planstates.html
kv-1.2.123/doc/AdminGuide/preface.html
kv-1.2.123/doc/AdminGuide/procedures.html
kv-1.2.123/doc/AdminGuide/recovery.html
kv-1.2.123/doc/AdminGuide/replacefailedsn.html
kv-1.2.123/doc/AdminGuide/reviewplans.html
kv-1.2.123/doc/AdminGuide/runadmin-reference.html
kv-1.2.123/doc/AdminGuide/select-cache-strategy.html
kv-1.2.123/doc/AdminGuide/setjavaheap.html
kv-1.2.123/doc/AdminGuide/setstoreparams.html
kv-1.2.123/doc/AdminGuide/smoketest.html
kv-1.2.123/doc/AdminGuide/store-config.html
kv-1.2.123/doc/AdminGuide/todeployaSN.jpg
kv-1.2.123/doc/AdminGuide/todeployadminreplica.jpg
kv-1.2.123/doc/AdminGuide/todeployasetofRepnodes.jpg
kv-1.2.123/doc/AdminGuide/topology.jpg
kv-1.2.123/doc/AdminGuide/troubleshooting.html
kv-1.2.123/doc/AdminGuide/verifyingthestore.html
kv-1.2.123/doc/GettingStartedGuide/
kv-1.2.123/doc/GettingStartedGuide/KVStoreArchitecture.jpg
kv-1.2.123/doc/GettingStartedGuide/Oracle-NoSQLDB-GSG.pdf
kv-1.2.123/doc/GettingStartedGuide/RepGroups.jpg
kv-1.2.123/doc/GettingStartedGuide/clpoptions.html
kv-1.2.123/doc/GettingStartedGuide/consistency-pre.html
kv-1.2.123/doc/GettingStartedGuide/consistency-time.html
kv-1.2.123/doc/GettingStartedGuide/consistency-version.html
kv-1.2.123/doc/GettingStartedGuide/consistency.html
kv-1.2.123/doc/GettingStartedGuide/depth.html
kv-1.2.123/doc/GettingStartedGuide/durability-set.html
kv-1.2.123/doc/GettingStartedGuide/durability-sync.html
kv-1.2.123/doc/GettingStartedGuide/durability.html
kv-1.2.123/doc/GettingStartedGuide/gettingStarted.css
kv-1.2.123/doc/GettingStartedGuide/index.html
kv-1.2.123/doc/GettingStartedGuide/introduction.html
kv-1.2.123/doc/GettingStartedGuide/kvapi.html
kv-1.2.123/doc/GettingStartedGuide/kvlite-usage.html
kv-1.2.123/doc/GettingStartedGuide/kvlite.html
kv-1.2.123/doc/GettingStartedGuide/multiget.html
kv-1.2.123/doc/GettingStartedGuide/multigetiterator.html
kv-1.2.123/doc/GettingStartedGuide/multikey.html
kv-1.2.123/doc/GettingStartedGuide/multiop.html
kv-1.2.123/doc/GettingStartedGuide/preface.html
kv-1.2.123/doc/GettingStartedGuide/readsubranges.html
kv-1.2.123/doc/GettingStartedGuide/recorddelete.html
kv-1.2.123/doc/GettingStartedGuide/recordget.html
kv-1.2.123/doc/GettingStartedGuide/recordput.html
kv-1.2.123/doc/GettingStartedGuide/schema.html
kv-1.2.123/doc/GettingStartedGuide/sequence-create.html
kv-1.2.123/doc/GettingStartedGuide/sequence-exec.html
kv-1.2.123/doc/GettingStartedGuide/singleget.html
kv-1.2.123/doc/GettingStartedGuide/stopkvlite.html
kv-1.2.123/doc/GettingStartedGuide/storeiterator.html
kv-1.2.123/doc/GettingStartedGuide/storewrites.html
kv-1.2.123/doc/GettingStartedGuide/values.html
kv-1.2.123/doc/GettingStartedGuide/verifykvlite.html
kv-1.2.123/doc/GettingStartedGuide/versions.html
kv-1.2.123/doc/examples/
kv-1.2.123/doc/examples/hadoop/
kv-1.2.123/doc/examples/hadoop/class-use/
kv-1.2.123/doc/examples/hadoop/class-use/CountMinorKeys.Map.html
kv-1.2.123/doc/examples/hadoop/class-use/CountMinorKeys.Reduce.html
kv-1.2.123/doc/examples/hadoop/class-use/CountMinorKeys.html
kv-1.2.123/doc/examples/hadoop/CountMinorKeys.Map.html
kv-1.2.123/doc/examples/hadoop/CountMinorKeys.Reduce.html
kv-1.2.123/doc/examples/hadoop/CountMinorKeys.html
kv-1.2.123/doc/examples/hadoop/package-frame.html
kv-1.2.123/doc/examples/hadoop/package-summary.html
kv-1.2.123/doc/examples/hadoop/package-tree.html
kv-1.2.123/doc/examples/hadoop/package-use.html
kv-1.2.123/doc/examples/hello/
kv-1.2.123/doc/examples/hello/class-use/
kv-1.2.123/doc/examples/hello/class-use/HelloBigDataWorld.html
kv-1.2.123/doc/examples/hello/HelloBigDataWorld.html
kv-1.2.123/doc/examples/hello/package-frame.html
kv-1.2.123/doc/examples/hello/package-summary.html
kv-1.2.123/doc/examples/hello/package-tree.html
kv-1.2.123/doc/examples/hello/package-use.html
kv-1.2.123/doc/examples/resources/
kv-1.2.123/doc/examples/resources/inherit.gif
kv-1.2.123/doc/examples/schema/
kv-1.2.123/doc/examples/schema/class-use/
kv-1.2.123/doc/examples/schema/class-use/InputData.html
kv-1.2.123/doc/examples/schema/class-use/KeyDefinition.html
kv-1.2.123/doc/examples/schema/class-use/LoginSession.html
kv-1.2.123/doc/examples/schema/class-use/LoginSummary.html
kv-1.2.123/doc/examples/schema/class-use/RunOperation.html
kv-1.2.123/doc/examples/schema/class-use/SchemaExample.html
kv-1.2.123/doc/examples/schema/class-use/UserImage.html
kv-1.2.123/doc/examples/schema/class-use/UserInfo.html
kv-1.2.123/doc/examples/schema/InputData.html
kv-1.2.123/doc/examples/schema/KeyDefinition.html
kv-1.2.123/doc/examples/schema/LoginSession.html
kv-1.2.123/doc/examples/schema/LoginSummary.html
kv-1.2.123/doc/examples/schema/RunOperation.html
kv-1.2.123/doc/examples/schema/SchemaExample.html
kv-1.2.123/doc/examples/schema/UserImage.html
kv-1.2.123/doc/examples/schema/UserInfo.html
kv-1.2.123/doc/examples/schema/package-frame.html
kv-1.2.123/doc/examples/schema/package-summary.html
kv-1.2.123/doc/examples/schema/package-tree.html
kv-1.2.123/doc/examples/schema/package-use.html
kv-1.2.123/doc/examples/allclasses-frame.html
kv-1.2.123/doc/examples/allclasses-noframe.html
kv-1.2.123/doc/examples/constant-values.html
kv-1.2.123/doc/examples/deprecated-list.html
kv-1.2.123/doc/examples/help-doc.html
kv-1.2.123/doc/examples/index-all.html
kv-1.2.123/doc/examples/index.html
kv-1.2.123/doc/examples/overview-frame.html
kv-1.2.123/doc/examples/overview-summary.html
kv-1.2.123/doc/examples/overview-tree.html
kv-1.2.123/doc/examples/package-list
kv-1.2.123/doc/examples/style.css
kv-1.2.123/doc/javadoc/
kv-1.2.123/doc/javadoc/oracle/
kv-1.2.123/doc/javadoc/oracle/kv/
kv-1.2.123/doc/javadoc/oracle/kv/class-use/
kv-1.2.123/doc/javadoc/oracle/kv/class-use/Consistency.Time.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/Consistency.Version.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/Consistency.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/ConsistencyException.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/ContingencyException.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/Depth.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/Direction.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/Durability.ReplicaAckPolicy.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/Durability.SyncPolicy.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/Durability.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/DurabilityException.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/FaultException.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/KVStore.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/KVStoreConfig.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/KVStoreFactory.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/KVVersion.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/Key.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/KeyRange.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/KeyValueVersion.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/Operation.Type.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/Operation.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/OperationExecutionException.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/OperationFactory.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/OperationResult.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/RequestLimitConfig.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/RequestLimitException.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/RequestTimeoutException.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/ReturnValueVersion.Choice.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/ReturnValueVersion.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/Value.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/ValueVersion.html
kv-1.2.123/doc/javadoc/oracle/kv/class-use/Version.html
kv-1.2.123/doc/javadoc/oracle/kv/hadoop/
kv-1.2.123/doc/javadoc/oracle/kv/hadoop/class-use/
kv-1.2.123/doc/javadoc/oracle/kv/hadoop/class-use/KVInputFormat.html
kv-1.2.123/doc/javadoc/oracle/kv/hadoop/KVInputFormat.html
kv-1.2.123/doc/javadoc/oracle/kv/hadoop/package-frame.html
kv-1.2.123/doc/javadoc/oracle/kv/hadoop/package-summary.html
kv-1.2.123/doc/javadoc/oracle/kv/hadoop/package-tree.html
kv-1.2.123/doc/javadoc/oracle/kv/hadoop/package-use.html
kv-1.2.123/doc/javadoc/oracle/kv/stats/
kv-1.2.123/doc/javadoc/oracle/kv/stats/class-use/
kv-1.2.123/doc/javadoc/oracle/kv/stats/class-use/KVStats.html
kv-1.2.123/doc/javadoc/oracle/kv/stats/class-use/NodeMetrics.html
kv-1.2.123/doc/javadoc/oracle/kv/stats/class-use/OperationMetrics.html
kv-1.2.123/doc/javadoc/oracle/kv/stats/KVStats.html
kv-1.2.123/doc/javadoc/oracle/kv/stats/NodeMetrics.html
kv-1.2.123/doc/javadoc/oracle/kv/stats/OperationMetrics.html
kv-1.2.123/doc/javadoc/oracle/kv/stats/package-frame.html
kv-1.2.123/doc/javadoc/oracle/kv/stats/package-summary.html
kv-1.2.123/doc/javadoc/oracle/kv/stats/package-tree.html
kv-1.2.123/doc/javadoc/oracle/kv/stats/package-use.html
kv-1.2.123/doc/javadoc/oracle/kv/Consistency.Time.html
kv-1.2.123/doc/javadoc/oracle/kv/Consistency.Version.html
kv-1.2.123/doc/javadoc/oracle/kv/Consistency.html
kv-1.2.123/doc/javadoc/oracle/kv/ConsistencyException.html
kv-1.2.123/doc/javadoc/oracle/kv/ContingencyException.html
kv-1.2.123/doc/javadoc/oracle/kv/Depth.html
kv-1.2.123/doc/javadoc/oracle/kv/Direction.html
kv-1.2.123/doc/javadoc/oracle/kv/Durability.ReplicaAckPolicy.html
kv-1.2.123/doc/javadoc/oracle/kv/Durability.SyncPolicy.html
kv-1.2.123/doc/javadoc/oracle/kv/Durability.html
kv-1.2.123/doc/javadoc/oracle/kv/DurabilityException.html
kv-1.2.123/doc/javadoc/oracle/kv/FaultException.html
kv-1.2.123/doc/javadoc/oracle/kv/KVStore.html
kv-1.2.123/doc/javadoc/oracle/kv/KVStoreConfig.html
kv-1.2.123/doc/javadoc/oracle/kv/KVStoreFactory.html
kv-1.2.123/doc/javadoc/oracle/kv/KVVersion.html
kv-1.2.123/doc/javadoc/oracle/kv/Key.html
kv-1.2.123/doc/javadoc/oracle/kv/KeyRange.html
kv-1.2.123/doc/javadoc/oracle/kv/KeyValueVersion.html
kv-1.2.123/doc/javadoc/oracle/kv/Operation.Type.html
kv-1.2.123/doc/javadoc/oracle/kv/Operation.html
kv-1.2.123/doc/javadoc/oracle/kv/OperationExecutionException.html
kv-1.2.123/doc/javadoc/oracle/kv/OperationFactory.html
kv-1.2.123/doc/javadoc/oracle/kv/OperationResult.html
kv-1.2.123/doc/javadoc/oracle/kv/RequestLimitConfig.html
kv-1.2.123/doc/javadoc/oracle/kv/RequestLimitException.html
kv-1.2.123/doc/javadoc/oracle/kv/RequestTimeoutException.html
kv-1.2.123/doc/javadoc/oracle/kv/ReturnValueVersion.Choice.html
kv-1.2.123/doc/javadoc/oracle/kv/ReturnValueVersion.html
kv-1.2.123/doc/javadoc/oracle/kv/Value.html
kv-1.2.123/doc/javadoc/oracle/kv/ValueVersion.html
kv-1.2.123/doc/javadoc/oracle/kv/Version.html
kv-1.2.123/doc/javadoc/oracle/kv/package-frame.html
kv-1.2.123/doc/javadoc/oracle/kv/package-summary.html
kv-1.2.123/doc/javadoc/oracle/kv/package-tree.html
kv-1.2.123/doc/javadoc/oracle/kv/package-use.html
kv-1.2.123/doc/javadoc/resources/
kv-1.2.123/doc/javadoc/resources/inherit.gif
kv-1.2.123/doc/javadoc/allclasses-frame.html
kv-1.2.123/doc/javadoc/allclasses-noframe.html
kv-1.2.123/doc/javadoc/constant-values.html
kv-1.2.123/doc/javadoc/deprecated-list.html
kv-1.2.123/doc/javadoc/help-doc.html
kv-1.2.123/doc/javadoc/index-all.html
kv-1.2.123/doc/javadoc/index.html
kv-1.2.123/doc/javadoc/overview-frame.html
kv-1.2.123/doc/javadoc/overview-summary.html
kv-1.2.123/doc/javadoc/overview-tree.html
kv-1.2.123/doc/javadoc/package-list
kv-1.2.123/doc/javadoc/serialized-form.html
kv-1.2.123/doc/javadoc/style.css
kv-1.2.123/doc/misc/
kv-1.2.123/doc/misc/MemoryConfigPlanning.xls
kv-1.2.123/doc/LICENSE.txt
kv-1.2.123/doc/README.txt
kv-1.2.123/doc/changelog.html
kv-1.2.123/doc/index.html
kv-1.2.123/doc/quickstart.html
kv-1.2.123/doc/relnotes.html
kv-1.2.123/doc/style.css
kv-1.2.123/examples/
kv-1.2.123/examples/hadoop/
kv-1.2.123/examples/hadoop/CountMinorKeys.java
kv-1.2.123/examples/hello/
kv-1.2.123/examples/hello/HelloBigDataWorld.java
kv-1.2.123/examples/hello/package.html
kv-1.2.123/examples/schema/
kv-1.2.123/examples/schema/InputData.java
kv-1.2.123/examples/schema/KeyDefinition.java
kv-1.2.123/examples/schema/LoginSession.java
kv-1.2.123/examples/schema/LoginSummary.java
kv-1.2.123/examples/schema/RunOperation.java
kv-1.2.123/examples/schema/SchemaExample.java
kv-1.2.123/examples/schema/UserImage.java
kv-1.2.123/examples/schema/UserInfo.java
kv-1.2.123/examples/schema/package.html
kv-1.2.123/examples/logging.properties
kv-1.2.123/examples/security.policy
kv-1.2.123/lib/
kv-1.2.123/lib/gwt-servlet.jar
kv-1.2.123/lib/je.jar
kv-1.2.123/lib/jetty-continuation-7.4.0.v20110414.jar
kv-1.2.123/lib/jetty-http-7.4.0.v20110414.jar
kv-1.2.123/lib/jetty-io-7.4.0.v20110414.jar
kv-1.2.123/lib/jetty-security-7.4.0.v20110414.jar
kv-1.2.123/lib/jetty-server-7.4.0.v20110414.jar
kv-1.2.123/lib/jetty-servlet-7.4.0.v20110414.jar
kv-1.2.123/lib/jetty-util-7.4.0.v20110414.jar
kv-1.2.123/lib/jetty-webapp-7.4.0.v20110414.jar
kv-1.2.123/lib/jetty-xml-7.4.0.v20110414.jar
kv-1.2.123/lib/oraclepki.jar
kv-1.2.123/lib/osdt_cert.jar
kv-1.2.123/lib/osdt_core.jar
kv-1.2.123/lib/servlet-api-2.5.jar
kv-1.2.123/lib/kvstore-1.2.123.jar
kv-1.2.123/lib/kvclient-1.2.123.jar
kv-1.2.123/LICENSE.txt
kv-1.2.123/README.txt
kv-1.2.123/build.xml
[sunyao@namenode tools]$ ls
jdk1.6.0_20 jdk-6u20-linux-i586.bin kv-1.2.123 kv-ee-1.2.123.tar.gz nohup.out
[sunyao@namenode tools]$ mkdir -p KVROOT
[sunyao@namenode tools]$ ls
jdk1.6.0_20 jdk-6u20-linux-i586.bin kv-1.2.123 kv-ee-1.2.123.tar.gz KVROOT nohup.out
[sunyao@namenode tools]$ java -jar kv-1.2.123/lib/kvstore-1.2.123.jar makebootconfig -root KVROOT -port 5000 -admin 5001 -host namenode -harange 5010,5020
[sunyao@namenode tools]$ nohup java -jar kv-1.2.123/lib/kvstore-1.2.123.jar start -root KVROOT&
[2] 21553
[sunyao@namenode tools]$ nohup: appending output to ‘nohup.out’
[2]+ Done nohup java -jar kv-1.2.123/lib/kvstore-1.2.123.jar start -root KVROOT
[sunyao@namenode tools]$ jps -m
22240 Jps -m
22137 kvstore-1.2.123.jar start -root KVROOT
22206 ManagedService -root KVROOT -class Admin -service BootstrapAdmin.5000 -config config.xml
[sunyao@namenode tools]$ java -jar kv-1.2.123/lib/kvstore-1.2.123.jar runadmin -pkv-> configure mystore
Lost connection to AdminService.
Reconnecting....
Exception while executing command configure: Error occurred in server thread; nested exception is:
java.lang.ExceptionInInitializerError
kv-> [sunyao@namenode tools]$ ls
bash: ls: command not found
[sunyao@namenode tools]$ ls
jdk1.6.0_20 jdk-6u20-linux-i586.bin kv-1.2.123 kv-ee-1.2.123.tar.gz KVROOT nohup.out
[sunyao@namenode tools]$ cd KVROOT/
[sunyao@namenode KVROOT]$ ls
adminboot_0.log adminboot_0.log.lck config.xml ms mystore security.policy snaboot_0.log snaboot_0.log.lck
[sunyao@namenode KVROOT]$ ls -la
总用量 84
drwxr-xr-x 4 sunyao users 4096 2月 7 11:07 .
drwxr-xr-x 5 sunyao users 4096 2月 7 11:04 ..
-rw-r--r-- 1 sunyao users 7637 2月 7 11:07 adminboot_0.log
-rw-r--r-- 1 sunyao users 0 2月 7 11:07 adminboot_0.log.lck
-rw-r--r-- 1 sunyao users 540 2月 7 11:04 config.xml
drwxr-xr-x 4 sunyao users 4096 2月 7 11:07 ms
drwxr-xr-x 4 sunyao users 4096 2月 7 11:07 mystore
-rw-r--r-- 1 sunyao users 52 2月 7 11:03 security.policy
-rw-r--r-- 1 sunyao users 11407 2月 7 11:07 snaboot_0.log
-rw-r--r-- 1 sunyao users 0 2月 7 11:04 snaboot_0.log.lck
[sunyao@namenode KVROOT]$ cat adminboot_0.log
02-07-12 11:04:41:334 CST 信息 [BootstrapAdmin] Starting in bootstrap mode
02-07-12 11:04:41:350 CST 信息 [BootstrapAdmin] Starting Command service on rmi://namenode:5000/commandService
02-07-12 11:04:41:580 CST 信息 [BootstrapAdmin] Starting Web service on port 5001
02-07-12 11:04:41:802 CST 信息 [BootstrapAdmin] jetty-7.4.0.v20110414
02-07-12 11:04:41:931 CST 信息 [BootstrapAdmin] Extract jar:file:/home/sunyao/oracle_nosql/tools/kv-1.2.123/lib/kvstore-1.2.123.jar!/war/KVAdminUI/ to /tmp/jetty-0.0.0.0-5001-KVAdminUI-_-any-/webapp
02-07-12 11:04:42:557 CST 信息 [BootstrapAdmin] NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
02-07-12 11:04:42:603 CST 信息 [BootstrapAdmin] started o.e.j.w.WebAppContext{,file:/tmp/jetty-0.0.0.0-5001-KVAdminUI-_-any-/webapp/},jar:file:/home/sunyao/oracle_nosql/tools/kv-1.2.123/lib/kvstore-1.2.123.jar!/war/KVAdminUI
02-07-12 11:04:42:696 CST 信息 [BootstrapAdmin] Started [email protected]:5001 STARTING
02-07-12 11:04:42:698 CST 信息 [BootstrapAdmin] Started AdminService
02-07-12 11:07:12:979 CST 严重 [BootstrapAdmin] Process exiting with error
java.lang.ExceptionInInitializerError
at com.sleepycat.je.rep.ReplicationMutableConfig.<clinit>(ReplicationMutableConfig.java:269)
at oracle.kv.impl.param.ParameterUtils.getRepEnvConfig(ParameterUtils.java:97)
at oracle.kv.impl.param.ParameterUtils.getRepEnvConfig(ParameterUtils.java:92)
at oracle.kv.impl.admin.Admin.createReplicationConfig(Admin.java:280)
at oracle.kv.impl.admin.Admin.<init>(Admin.java:225)
at oracle.kv.impl.admin.AdminService.configure(AdminService.java:252)
at oracle.kv.impl.admin.CommandServiceImpl$33.execute(CommandServiceImpl.java:629)
at oracle.kv.impl.fault.ProcessFaultHandler.execute(ProcessFaultHandler.java:142)
at oracle.kv.impl.admin.CommandServiceImpl.configure(CommandServiceImpl.java:624)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalArgumentException: Invalid hostname: localhost The host name is not associated with this machine.
at com.sleepycat.je.rep.impl.RepParams$3.validateValue(RepParams.java:247)
at com.sleepycat.je.config.ConfigParam.<init>(ConfigParam.java:61)
at com.sleepycat.je.rep.impl.RepParams$3.<init>(RepParams.java:217)
at com.sleepycat.je.rep.impl.RepParams.<clinit>(RepParams.java:213)
... 23 moreort 5000 -host namenode
By the way, how can I cancel or restart the plan "ERROR_NO_RESTART" and "UNREACHABLE" ?
Edited by: 912068 on 2012-2-6 下午11:17 -
Padding in excel output through servlet,jsp
Hi ,
i want response through servlet in excel format.i am using the code lines below.
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-Disposition", "attachment; filename=pif_excel_asp.xls");
Now i am unable to pad the string with spaces which i am getting through database.can anyone help me.?Thx in advance
Cheers:
AkashHi,
Did you solve your problem? I have the same problem.
The report fails to run and I get Java error when I follow the example shown in Oracle® Reports Building Reports 10g Release 2 (10.1.2) Chapter 29 to build a jsp.
Regards,
neemin -
Not able to retrieve data from database through servlet
Hi friends,
I am trying to open a excel sheet through servlet. In this servlet i am retriving data from mssql database.I am not getting any error but no data is retrived
i m also pasting the code here
// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: EmployeeData.java
import java.io.*;
import java.sql.*;
import javax.sql.*;
import javax.servlet.ServletException;
import javax.servlet.http.*;
public class EmployeeData extends HttpServlet
public EmployeeData()
public void service(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse)
throws ServletException, IOException
httpservletresponse.setContentType("text/html");
httpservletresponse.setHeader("Content-Type", "application/excel");
httpservletresponse.setHeader("Content-Disposition", "filename=reports.xls");
PrintWriter printwriter = httpservletresponse.getWriter();
try
javax.servlet.http.HttpSession httpsession = httpservletrequest.getSession(true);
int i = 0;
/* Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:3413;DatabaseName=newreportsodbc", "reportuser", "cisco");*/
String url="jdbc:odbc:newreportsodbc";
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
Connection connection = DriverManager.getConnection("jdbc:odbc:newreportsodbc","reportuser","cisco");
Statement statement = connection.createStatement();
printwriter.println("<b><center><u> Search Results </u></center></b>");
printwriter.print("<table><tr><th color=brown background-color=#fff000> No. </th>");
printwriter.print("<th> DateTime </th></tr></table>");
ResultSet resultset = statement.executeQuery("SELECT * FROM t_Call_Type_Half_Hour");
boolean flag;
for(flag = false; resultset.next(); flag = true)
i++;
SerialNo = resultset.getString(2);
printwriter.print((new StringBuilder()).append("<table><tr><td> ").append(i).append("</td>").toString());
printwriter.print((new StringBuilder()).append("<td> ").append(SerialNo).append("</td></tr></table>").toString());
if(!flag)
printwriter.println("<h1> No records selected </h1>");
catch(Exception exception)
System.out.println((new StringBuilder()).append("SQLException: ").append(exception).toString());
static String empid1;
static String empid;
static String SerialNo;
static String designation;
}thanks in advance. i just feel there is something to be done with connection string.post the table format in SQL
-
How to load date and time from text file to oracle table through sqlloader
hi friends
i need you to show me what i miss to load date and time from text file to oracle table through sqlloader
this is my data in this path (c:\external\my_data.txt)
7369,SMITH,17-NOV-81,09:14:04,CLERK,20
7499,ALLEN,01-MAY-81,17:06:08,SALESMAN,30
7521,WARD,09-JUN-81,17:06:30,SALESMAN,30
7566,JONES,02-APR-81,09:24:10,MANAGER,20
7654,MARTIN,28-SEP-81,17:24:10,SALESMAN,30my table in database emp2
create table emp2 (empno number,
ename varchar2(20),
hiredate date,
etime date,
ejob varchar2(20),
deptno number);the control file code in this path (c:\external\ctrl.ctl)
load data
infile 'C:\external\my_data.txt'
into table emp2
fields terminated by ','
(empno, ename, hiredate, etime, ejob, deptno)this is the error :
C:\>sqlldr scott/tiger control=C:\external\ctrl.ctl
SQL*Loader: Release 10.2.0.1.0 - Production on Mon May 31 09:45:10 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Commit point reached - logical record count 5
C:\>any help i greatly appreciated
thanks
Edited by: user10947262 on May 31, 2010 9:47 AMload data
infile 'C:\external\my_data.txt'
into table emp2
fields terminated by ','
(empno, ename, hiredate, etime, ejob, deptno)Try
load data
infile 'C:\external\my_data.txt'
into table emp2
fields terminated by ','
(empno, ename, hiredate, etime "to_date(:etime,'hh24:mi:ss')", ejob, deptno)
this is the error :
C:\>sqlldr scott/tiger control=C:\external\ctrl.ctl
SQL*Loader: Release 10.2.0.1.0 - Production on Mon May 31 09:45:10 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Commit point reached - logical record count 5
C:\>
That's not an error, you can see errors within log and bad files. -
How do I migrate views from MS SQL 2008 to Oracle 11g through SQL Developer
Is there any way to migrate the views from MS SQL 2008 to Oracle 11g through SQL Developer? Please give me some detail steps. Thanks for your help.
KevinHi Kevin,
user13531850 wrote:
Hi Turloch,
When I use migrate to oracle, I got a problem, the migrate tool create a new schema for me in my case (AZTECA_KSMMS), it migrates all the stuffs under that schema (AZTECA_KSMMS). However my application need the all the Oracle data under schema AZTECA instead of AZTECA_KSMMS. Is there any way to specify specific schema (AZTECA) for target oracle database? Schema remapping is available:
First Capture (separately) then during right click convert on the captured model there is a Specify the conversion options with a Object Naming tab where the schema (and other) name changes are editable.
I have not used this recently.
Also during the migration process, when I choose repository, there is a check box for truncate to reset repository to empty state, Do I need to check that truncate Check Box so the repository will be cleared from last migration?The repository can hold multple migration attempts. Check truncate to get rid of previous attempts information. This cleans up the repository - not the destination database.
There are also online database and offline database options during the migration process, what are the difference between these two choices? After I migrated to Oracle, all my views has a red cross icon next to it. Does that mean the view migration is failed or not? Please give me your comments. Thanks for your help.offline: for big (amount of data) databases with simple data types,
uses bcp + files + scripts + sqlldr.
online: for small (amount of data) databases (easier),
uses (Java) jdbc.
The view is likely to be broken - recompiling it may help.
The Oracle schema is created using a .sql file - see under generated in the directory you gave originally in the wizard. There is a .out file that contains the result of running this script including any errors. During conversion there are also likely to be warnings displayed on the UI.
There may be a single issue that is causing multiple issues - if viewa depends on functionb, and functionb is broken, viewa will also fail.
>
Kevin-Turloch
SQLDeveloper Team -
Problem in connecting to oracle DB through NWDS
Hi All,
I cannot establish a connection to the oracle DB through the below mentioned code written in webdynpro java. I am new to this area.
Please check what is wrong with this code and suggest me how to resolve this......I have pasted the classes12.jar in the lib folder.
import oracle.jdbc.driver.OracleDriver;
ResultSet resSet = null;
Statement Stat = null;
Connection conn = null;
PreparedStatement pstmt= null;
String url = "jdbc:oracle:thin:@local server:1521:SID";
String user = "ABC";
String password = "123";
try
conn = DriverManager.getConnection(url,user,password);
Stat = conn.createStatement();
pstmt = conn.prepareStatement("Select * from tablename");
resSet = pstmt.executeQuery();
wdComponentAPI.getMessageManager().reportSuccess("Result"+resSet);
if (resSet != null)
resSet.close(); // close ResultSet
Stat.close(); // close Statement
conn.close();
catch (Exception e)
e.printStackTrace();
Regards,
Athulya.Hi ,
import oracle.jdbc.driver.OracleDriver;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
ResultSet resSet = null;
Statement Stat = null;
Connection conn = null;
PreparedStatement pstmt= null;
String url = "jdbc:oracle:thin:@local server:1521:SID";
String user = "ABC";
String password = "123";
try
conn = DriverManager.getConnection(url,user,password);
Stat = conn.createStatement();
pstmt = conn.prepareStatement("Select * from tablename");
resSet = pstmt.executeQuery();
wdComponentAPI.getMessageManager().reportSuccess("Result"+resSet);
if (resSet != null)
resSet.close(); // close ResultSet
Stat.close(); // close Statement
conn.close();
catch (Exception e)
e.printStackTrace();
Regards,
Athulya -
I want to store a JPG image into database column through Servlet
and dispaly it on a JSP page through Beans
how can i ?Any requests made to a JSP are of a certain content. Generally you make a request to a JSP page it sends back a "text/html" document. There is noi binary data as such just text.
Images on a page are displayed because the "src" attribute of the image tag points to a server location. This in turn returns content of type "image/*".
A servlet can retrieve/generate your images for you for example you could point to a servlet:
<img src="/system/imageServlet">
I guess a JSP can do the same (I've never tried it) just remember to set the response.contentType to "image/gif"/"image/jpg".....
Cheers,
Anthony -
Problem in opening .ics and .vcs file types through servlet in IE browser.
I'm having problem in downloading an .ics and .vcs file through servlet in I.E browser. It is happening fine in Mozilla firefox(they both are getting opened in OutLook), but in IE it says as undefined file type.
I'm using Content Type as : 'text/Calendar' and then setting header as :
response().setContentType("text/Calendar");
response().setContentLength(file.length());
response().setHeader("Content-Disposition", "attachment;
filename="+filepath);
and after that i'm writing it to OutPut stream.
Plz Help.Hi,
On page load check whether the session values are there. If not redirect the user to the login page.
Hope this helps,
Regards,
Sammani -
Upload the excel file in oracle db through oracle forms
Hi all,
I want to upload the excel file in oracle db through oracle forms...I am new to oracle forms .
I have searched a lot but not getting exact solution
Is there anyone who will help me out with this .....
Any help will be appriciatedI'm trying to move data from excel into an Oracle forms field. This involves coping 2 columns of data cells in excel and pasting it into an Oracle forms field. I can get the date pasted into the Oracle forms field but there is a invisible character that separates the 2 columns of data coming from Excel. I do not know what this character is but it is causing the error 'Line 1 is invalid. Check forms'.
Any ideas how to get pass this?
Thank you -
Upload 1000 of Employe picture in Oracle HRMS through any backgroup process
Hi
Do anybody help me, how to upload 1000 of Employee picture data in Oracle HRMS through any backgroup process.
Regards
MakshudHi,
Please refer to the following thread.
API to load images for
API to load images for
Regards,
Hussein -
Oracle NoSQL YCSB - continuously increasing execution time
Greetings,
currently I am testing several nosql databases using YCSB. I am new to that type of databases, but I have already tested few of them. I am using VM with 2GB RAM and hosted on Win 7. Even though it is not recommended, since I am working in now capacity environment, I am using KVlite. But my problem is confusing and I can not find the reason. So, I have successfully loaded data and tested Oracle NoSQL using different workloads. However, with each execution, I get higher execution time. For example, if at 1st execution I get 20 seconds, if I shut database down and next day execute same workload again, I get 35 second execution time and so on.
Do you have any idea of what may be causing that? Like I said, I have been researching some nosql databases but I have never had that strange results.
Regards.To add to Robert's comment, the NoSQL DB documentation on KVLite states the following:
KVLite is a simplified version of Oracle NoSQL Database. It provides a single-node store
that is not replicated. It runs in a single process without requiring any administrative interface.
You configure, start, and stop KVLite using a command line interface.
KVLite is intended for use by application developers who need to unit test their Oracle NoSQL
Database application. It is not intended for production deployment, or for performance measurements.
Per the documentation, you can use KVLite to test out the API calls in your performance benchmarking application, but you should not use to it perform the actual performance testing. For performance testing, please install and use the Oracle NoSQL Database server.
Maybe you are looking for
-
Shared heading missing from sidebar
i have a macbook pro listed below, plus an imac 2.66 intel core 2 duo. i can see the mac book pro in the sidebar of the imac, but not the other way round. a while ago i remember "hiding" the shared tab from the sidebar, now i can not retrieve it .bot
-
OA FRAMEWORK DATE FORMAT IS CONFLICTING WITH PERSONAL DATE FORMAT IN APPRAI
We are using Self service appraisals forms and added a field using oa framework personalizations. The field is available in the View Object and is mapped to an Attribute (DFF) field. The created item is of style Message Input Text with datatype DATE.
-
Can anyone tell me about the user exits in T-code FB08. Can we reverse the one line item in one doc. corresponding to the other open line item in other document of same amount.
-
Hello all, I currently run Parallels on my MBP using XP in bootcamp. However following installation, my computer will only open .dmg through parallels, setting Windows Explorer as the default application for opening them. I have checked DiskImage Mou
-
Dumps generting due to background job failing
Hi Experts, The following backround job getting failed frequently caused dumps generation, Background running with the below program, Dump:: Can you please some one help me on this issue. Rgds, Venkat