📄 makefile
字号:
## Makefile for compiling and executing files under# demo/samples/generic/Inheritance/Inheritance2/## Usage: make <all> | <thin> | <oci> | <ocitns> | <single demo>## Before you run any demo programs, you should:# 1. set up your database and make sure your database started with# COMPATIBLE parameter with the value of 9.0.0.0.0 or greater# in your database init files (e.g., tkinit.ora)# 2. set up demo schema. Please refer to Samples-Readme.txt, section# Setting Up Schemas. # 3. Modify this makefile to use appropriate host/port/SID/service_name.# search for MODIFY_HERE to process your modifications.## Features demonstrated:# Oracle 9i inheritance feature -- accessing subtype objects by using# SQLData customized mapping.#JDBC_URL=jdbc:oracle:oci:@JDBC_URL_2=jdbc:oracle:oci:@# It supposes that CLASSPATH contains the JDK classesDEMO_CLASSPATH=.:${ORACLE_HOME}/jlib/jndi.jar:${ORACLE_HOME}/jlib/jta.jarCLASSPATH=${ORACLE_HOME}/jdbc/lib/classes12.jar:${DEMO_CLASSPATH}# 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 run# MODIFY_HERE# Please use appropriate <host> <port> and <sid>thin: make all JDBC_URL=jdbc:oracle:thin:@localhost:1521:orcloci: 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 $<print: echo "Classpath is $(CLASSPATH)"run: Inheritance2Inheritance2: Inheritance2.class $(JAVA) -classpath $(CLASSPATH) -DJDBC_URL=$(JDBC_URL) Inheritance2clobber: rm -f *.class rm -f *.out
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -