⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 Java示例100
💻
字号:
## Makefile for compiling and executing following files # demo/samples/jdbcoci/*.java## Usage: make <all> | <oci> | <ocitns> | <single demo>## Before you run any demo programs, you should:#       1. set up your database and demo schema. Please refer to#          Samples-Readme.txt, section Setting Up Schemas for details.#       2. Modify this makefile to use appropriate host/port/SID/service_name.#          search for MODIFY_HERE ... to process your modification.## Features demonstrated:#       OCI Connection Pooling, Ntier Authentication, PL/SQL index-by tables,#       OCI application failover with callbacks, and JNDI. #       native XA feature is demonstrated in a sub directory native-xa#JDBC_URL=jdbc:oracle:oci:@JDBC_URL_2=jdbc:oracle:oci:@DEMO_CLASSPATH=.:${ORACLE_HOME}/jlib/jndi.jar:${ORACLE_HOME}/jlib/jta.jarCLASSPATH=.:${ORACLE_HOME}/jdbc/lib/classes12.jar:${ORACLE_HOME}/jdbc/lib/ocrs12.zip:${DEMO_CLASSPATH}:${ORACLE_HOME}/jlib/providerutil.jar:${ORACLE_HOME}/jlib/fscontext.jar# MODIFY_HERE# Please use a correct path on your machineJAVAC=/usr/local/packages/jdk1.2/bin/javacJAVA=/usr/local/packages/jdk1.2/bin/javaall: clobber compile runoci: 	make all JDBC_URL=jdbc:oracle:oci:@# MODIFY_HERE# Please use appropriate <host> <port> and <service_name>ocitns:	make all JDBC_URL="jdbc:oracle:oci:@\(DESCRIPTION=\(ADDRESS=\(PROTOCOL=tcp\)\(HOST=localhost\)\(PORT=1521\)\)\(CONNECT_DATA=\(SERVICE_NAME=orcl.oracle.com\)\)\)"compile:	$(JAVAC) -classpath $(CLASSPATH)  -g `find . -name \*.java -print`%.class: %.java	$(JAVAC) -classpath $(CLASSPATH)  -g  $<run: OCIConnectionPool NtierAuth OCIFailOver PLSQLIndexTab OCIConnPoolJNDIOCIConnectionPool: OCIConnectionPool.class	$(JAVA) -classpath $(CLASSPATH) -DJDBC_URL=$(JDBC_URL) OCIConnectionPoolNtierAuth: NtierAuth.class	$(JAVA) -classpath $(CLASSPATH) -DJDBC_URL=$(JDBC_URL) NtierAuthOCIFailOver: OCIFailOver.class	$(JAVA) -classpath $(CLASSPATH) -DJDBC_URL=$(JDBC_URL) OCIFailOverPLSQLIndexTab: PLSQLIndexTab.class	$(JAVA) -classpath $(CLASSPATH) -DJDBC_URL=$(JDBC_URL) PLSQLIndexTab# MODIFY_HERE# The sub-directories JNDI/ and JNDI/jdbc must be present in this directory.# Or you could replace it with an appropriate path.OCIConnPoolJNDI: OCIConnPoolJNDI.class	-rm -f ./JNDI/jdbc/.bindings	$(JAVA) -classpath $(CLASSPATH) -DJDBC_URL=$(JDBC_URL) OCIConnPoolJNDI ./JNDIclobber:	rm -f *.class	rm -f *.out

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -