还剩8页未读,继续阅读
本资源只提供10页预览,全部文档请下载后查看!喜欢就下载吧,查找使用更方便
文本内容:
J__a学习资料制作刘晏2005-7-24一.软件获取 首先要说的是,如果作为一个软件__人员也不能重视软件版权问题的话,那真的是软件业的悲哀,所以强烈建议使用正版软件 诚然,正版软件的天价对于个人使用者来说确实是个问题,好在现在的软件厂商已经开始卖服务而不是仅仅卖软件了,所以,穷苦大众们也能尝试一下丰盛大餐的滋味了 Ⅰ.Jbuilder9可以到Borland公司____下载到EnterpriseTrial30天试用版本或Personal版本 下载地址http://___.borland.com/products/downloads/download_jbuilder.html II.WebLogicPlatform
8.1可以到BEA公司____免费注册获取试用 下载地址http://commer__.bea.com/index.jsp III.Oracle9i可以到Oracle公司____注册一个免费账号后下载 下载地址http://otn.oracle.com/software/index.html 二.软件__与配置 Ⅰ.Weblogic
8.1的__与配置
1.____文件开始__,首先Nextà选中Yes,__Nextà创建目录,这里使用默认的,直接Nextà一路Next,直到开始__
2.Stepbystep__完毕后,我们要配置自己的do__in,__开始/程序/BEAWebLogicPlatform
8.1/ConfigurationWizard(图一)选择CreateanewWeblogicconfigurationNextàBasicWeblogicServerDo__inàNextàExpressàNext输入Name*Password*Description图二接着Nextà右下角修改ConfigurationName:àCreate图三一直到进度条为100%时Done完成
3.现在我们可以启动mydo__in,看是否能正常使用了 __开始/程序/BEAWebLogicPlatform
8.1/UserProjects/mydo__in/StartServer会弹出如(图四)的DOS弹出窗口,并一直保持,没有异常报错,那就要恭喜你了,你的Weblogic已经正常启动了,Weblogic的基本__和配置就算完成了图一图二图三图四Ⅱ.Oracle9i的__和配置
(一).__ 1.将下载到的92010NT_Disk
1.zip、92010NT_Disk
2.zip、92010NT_Disk
3.zip及客户端92010NT_CLT.zip各自解压 2.运行disk1中的setup.exe文件,OracleUniversalInstaller将指导你完成Oracle产品的__和配置 3.Oracle9i的初步__完成后,接下来我们将\oracle\ora92\network\admin\sqlnet.ora打开,将其中的NTS改为NONE 4.__开始/程序/Oracle-OraHome92/ConfigurationandMigrationTools/DatabaseConfigurationAssistant开始添加数据库图五 步骤
1.创建数据库 步骤
2.NewDatabase 步骤
3.全局数据库名及SID 步骤
4.数据库特性 步骤
5.选择希望数据库采用的默认操作模式 步骤
6.初始化参数 步骤
7.数据库存储 步骤
8.创建数据库,完成 Oracle9i的__到此算完成了
(二).设置用户
1.__开始/程序/Oracle-OraHome92/ApplicationDevelopment/SQLPlus;
2.在用户名称[U]和口令[P]输入system的用户名和__,默认为system和__nager(或__时自己设定的__),确定无误后你就能看到以下的界面了图六
3.创建表空间TEST大小100M:CREATETABLESPA__TEST;LOGGING;DATAFILED:\ORACLE\ORADATA\TEST\HAIG.oraSIZE100M;
4.创建用户TEST默认表空间TEST;CREATEUSERTESTPROFILEDEFAULTIDENTIFIEDBYTEST;DEFAULT;TABLESPA__TESTACCOUNTUNLOCK;
5.授予其三个权限:UNLIMITEDTABLESPA__CONNECTRESOUR__;GRANTUNLIMITEDTABLESPA__CONNECTRESOUR__TOTEST;
6.使用TEST用户登录;CONNECTTEST/TEST; 正常显示已连接,Okay
(三).创建示例数据库
1.建表;CREATETABLEcountnum1NUMBER42num2NUMBER52resultNUMBER62;
2.插入数据;INSERTINTOcountnum1num2resultVALUES112;INSERTINTOcountnum1num2resultVALUES111;INSERTINTOcountnum1num2resultVALUES2810;INSERTINTOcountnum1num2resultVALUES6890158;
3.提交数据;COMMIT; 新表建立,数据插入成功 Ⅲ.Jbuilder9的__与配置Jbuilder9的__挺方便的,运行ent_trial_install.exeInstallAnywhere会解压__,你要做的就是nextinstall Jbuilder9__好,能正常运行了,接下来就可以在Jbuilder中配置Weblogic了,__开始/程序/BorlandJBuilder9EnterpriseTrial/BorlandJBuilder9EnterpriseTrial启动Jbuilder9à在菜单栏__Tools/ConfigureServers...à弹出ConfigureServers窗口,在左边的UserHome目录中选择WebLogicPlatformServer
8.x,选中右边的Enableserver项,这时右边所有本来是灰色的项都变得黑色的可使用状态首先,在General子页中将Homedirectory:设为d:/bea/weblogic81/server注这里的d/bea填的应该是你自己的bea__目录,Workingdirectory:设为d:/bea/user_projects/mydo__in如果你的bea不是__在c:/那么就需要将VMparameters:属性中的-Dj__a.library.path=D:D:/bea/weblogic700/server/bin和-Dj__a.security.policy==D:D:/bea/weblogic700/server/lib/weblogic.policy去掉一个D:图七 接下来到Custom子页,BEAhomedirectory:设为d:/bea;JDKinstallationdirectory:设为d:/bea/jdk141_02Do__indirectory:设为d:/bea/user_projects/mydo__in在Username:,Possowrd:中填入__WebLogic时的用户名和__,将Listenaddress:改为localhost不选AddanAdminConsoleitemtothetoolsmenu和AddaConfigurationWizarditemtothetoolsmenu,完成后__OK图八 接下来在菜单栏__Project/DefaultProjectProperties…à弹出DefaultProjectProperties窗口,在Server子页中选中Singleserverforallservi__sinproject,然后在其下面的下拉框中选择WeblogicApplicationServer
8.x,__OK确定图九Ⅳ.在Weblogic
8.1中配置JDBC JDBC的连接有两种,一种是直接连接,另一种是池连接这里介绍的是通过配置连接池(ConnectionPool)和数据源(DataSour__)来实现池连接 首先,__开始/程序/BEAWebLogicPlatform
8.1/UserProjects/mydo__in/StartServer,启动WebLogicserver
8.1接着在IE的地址栏输入http://localhost:7001/console,回车,出现WeblogicServer登录页面,输入Username:和Password,__SignIn登录 __Servi__sConfigurations/JDBC/ConnectionPools/ConfigureanewJDBCConnectionPool…建立一个连接池,在Choosedatabase中选择DatabaseType:为OracleDatabaseDriver:选择OraclesDriverThinVersions:
8.
179.
019.20__Continue,在Difineconnectionproperties中设置Name:oraclePoolDatabaseName:test在__Oracle时建立的全局数据库名HostName:localhostPort:1521DatabaseUserName:test在__Oracle时建立的用户名Password:test(在__Oracle时建立的用户__)ConfirePassword:test重复__ __Continue继续,进入Testdatabaseconnection页面,__TestDriverConfiguration进入Createandeploy页面,如果你看到的是绿色Connectionsuc__ssful字样,说明配置成功,__Createandeploy建立oraclePool连接池 接下来我们配置数据源testTxDataSour__,单击控制台左侧域树的JDBC/DataSour__节点,然后单击右侧的ConfigureanewJDBCTxDataSour__,进入Configurethedatasour__选项卡Name:testDataSour__JNDIName:jdbc/testDataSour__ __Continue进入下一页面填写PoolName:oraclePool 单击Create创建 至此,Oracle在WebLogic中的JDBC设置就完成了,重新启动WebLogic,如果没有报错就说明配置成功。