1、开始安装和配置 Java如果你的电脑上还没有安装 Java,则可以到 Sun Developer Network 下载 Java 安装文件 (1)安装 JavaC:/java -versionjava version 1.6.0_13Java(TM) SE Runtime Environment (build 1.6.0_13-b03)Java HotSpot(TM) Client VM (build 1
1、开始安装和配置 Java如果你的电脑上还没有安装 Java,则可以到 Sun Developer Network 下载 Java 安装文件
(1)安装 JavaC:/>java -versionjava version "1.6.0_13"Java(TM) SE Runtime Environment (build 1.6.0_13-b03)Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)设置 JAVA_HOME 和 CATALINA_OPTS 环境变量C:/>echo %JAVA_HOME%C:/Program Files/Java/jdk1.6.0_13
(2) 部署 Pentaho 平台[//下载 Pentaho]a. 没有预装 Apache-Tomcat使用 winrar 或 7-Zip 解压 pentaho-ce-3.5.x.stable.zip C:/|-- pentaho| |-- adminstration-console| |-- biserver-ceb. 预装 Apache-Tomcat参见原文
(3) 安装 Oracle JDBC 瘦客户端驱动访问 Oracle 网站,下载ojdbc14.jarhttp://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_10201.html将 ojdbc14.jar 复制到 %PENTAHO_HOME/tomcat/common/lib 和 administration-console/jdbc 文件夹
(4) 下载 SQL 脚本包Pentaho_3.5.0_Oracle_SQL_Pack.ziphttp://docs.google.com/uc?id=0B9Jmocc0fj_EM2JmNDkyMGItMzUzYS00MWQxLTgwYTMtMjM5NTUyNDYzOTQz&export=download&hl=zh_CN
2、配置 Oracle 10g/11g 数据库将下载的 SQL 脚本解压:
1_create_repository_oracle.sql 创建 Hibernate 数据库
2_create_quartz_oracle.sql 创建 Quartz 数据库 3_load_sample_users_oracle.sql 创建 Hibernate 数据库的所有演示用户和角色编辑 SQL 脚本(参考原文)装载 SQL 脚本(参考原文)
3、配置 JDBC 安全性编辑 $PENTAHO_HOME/pentaho-solutions/system/applicationContext-spring-security-jdbc.xml
注意:Here is a brief description of the url value property: jdbc:oracle:thin:[host]:[port]:[sid] In this example I have used an IP address of my Oracle 10g database for my host, you would most likely have a host setup in your tns.ora file already. The port which your Oracle 10g database runs on. The SID of your Oracle 10g database, in this example it is ORCL.
编辑 $PENTAHO_HOME/pentaho-solutions/system/applicationContext-spring-security-hibernate.properties jdbc.driver=oracle.jdbc.driver.OracleDriver jdbc.url=jdbc:oracle:thin:@127.0.0.1:1521:ORCL jdbc.username=hibuser jdbc.password=password hibernate.dialect=org.hibernate.dialect.Oracle10gDialect
编辑 $PENTAHO_HOME/pentaho-solutions/system/hibernate/hibernate-settings.xml system/hibernate/oracle10g.hibernate.cfg.xml
编辑 $PENTAHO_HOME/pentaho-solutions/system/hibernate/oracle10g.hibernate.cfg.xml jdbc:oracle:thin:@127.0.0.1:1521:ORCL
4、配置 Hibernate 和 Quartz
编辑 $PENTAHO_HOME/tomcat/webapps/pentaho/META-INF/context.xml
编辑 $PENTAHO_HOME/pentaho-solutions/system/quartz.properties org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.oracle.OracleDelegate
5、配置 Apache-Tomcat 服务
编辑 $PENTAHO_HOME/tomcat/webapps/pentaho/WEB_INF/web.xml a. solution-path solution-path C:/pentaho/pentaho-solutions b. base-url http://www.prashantraju.com:8080/pentaho/ 或 http://192.168.1.100:8080/pentaho/ c. TrustedIpAddrs TrustedIpAddrs 127.0.0.1,[your_ip_address] d. Other Parameters 你可以在 web.xml 修改默认的语言和国家
6、配置 SMTP 邮件服务器
编辑 $PENTAHO_HOME/pentaho-solutions/system/smtp-email.xml以下是一些常用的配置参数: mail.smtp.host This is the address of your SMTP email server for sending email e.g. smtp.gmail.com mail.smtp.port This is the port of your SMTP email server e.g. for GMail this is 587 mail.transport.protocol The transport for accessing the email server. Usually this is smtp e.g. for GMail this is smtps mail.smtp.starttls.enable If you SMTP server uses TTLS authentication set this to true e.g. for GMail this is true mail.smtp.auth Set to true if the email server requires the sender to authenticate mail.smtp.ssl This is true if the email server requires an SSL connection e.g. for GMail this is true mail.debug Output debug information from the JavaMail API mail.pop3 Not being used. mail.from.default The from address that emails from the Pentaho BI Platform e.g. prashantraju@gmail.com mail.userid The userid that is used when authenticating with the SMTP server, mail.smtp.auth must be set to true. mail.password The password that is used when authenticating with the SMTP server, mail.smtp.auth must be set to true.这里有一个 GMail 的 smtp-email.xml 配置例子 smtp.gmail.com 587 smtps true true true false pentahoadmin@gmail.com pentahoadmin@gmail.com password
7、配置发布
编辑 $PENTAHO_HOME/pentaho-solutions/publisher_config.xml publishthis
8、启动 Pentaho 平台$PENTAHO_HOME/biserver-ce/start-pentaho.bat访问: http://localhost:8080/pentaho
9、启动 Pentaho 管理控制台$PENTAHO_HOME/adminstration-console/start-pac.bat访问: http://localhost:8099

InnoDBBufferPool reduces disk I/O by caching data and indexing pages, improving database performance. Its working principle includes: 1. Data reading: Read data from BufferPool; 2. Data writing: After modifying the data, write to BufferPool and refresh it to disk regularly; 3. Cache management: Use the LRU algorithm to manage cache pages; 4. Reading mechanism: Load adjacent data pages in advance. By sizing the BufferPool and using multiple instances, database performance can be optimized.

Compared with other programming languages, MySQL is mainly used to store and manage data, while other languages such as Python, Java, and C are used for logical processing and application development. MySQL is known for its high performance, scalability and cross-platform support, suitable for data management needs, while other languages have advantages in their respective fields such as data analytics, enterprise applications, and system programming.

MySQL is worth learning because it is a powerful open source database management system suitable for data storage, management and analysis. 1) MySQL is a relational database that uses SQL to operate data and is suitable for structured data management. 2) The SQL language is the key to interacting with MySQL and supports CRUD operations. 3) The working principle of MySQL includes client/server architecture, storage engine and query optimizer. 4) Basic usage includes creating databases and tables, and advanced usage involves joining tables using JOIN. 5) Common errors include syntax errors and permission issues, and debugging skills include checking syntax and using EXPLAIN commands. 6) Performance optimization involves the use of indexes, optimization of SQL statements and regular maintenance of databases.

MySQL is suitable for beginners to learn database skills. 1. Install MySQL server and client tools. 2. Understand basic SQL queries, such as SELECT. 3. Master data operations: create tables, insert, update, and delete data. 4. Learn advanced skills: subquery and window functions. 5. Debugging and optimization: Check syntax, use indexes, avoid SELECT*, and use LIMIT.

MySQL efficiently manages structured data through table structure and SQL query, and implements inter-table relationships through foreign keys. 1. Define the data format and type when creating a table. 2. Use foreign keys to establish relationships between tables. 3. Improve performance through indexing and query optimization. 4. Regularly backup and monitor databases to ensure data security and performance optimization.

MySQL is an open source relational database management system that is widely used in Web development. Its key features include: 1. Supports multiple storage engines, such as InnoDB and MyISAM, suitable for different scenarios; 2. Provides master-slave replication functions to facilitate load balancing and data backup; 3. Improve query efficiency through query optimization and index use.

SQL is used to interact with MySQL database to realize data addition, deletion, modification, inspection and database design. 1) SQL performs data operations through SELECT, INSERT, UPDATE, DELETE statements; 2) Use CREATE, ALTER, DROP statements for database design and management; 3) Complex queries and data analysis are implemented through SQL to improve business decision-making efficiency.

The basic operations of MySQL include creating databases, tables, and using SQL to perform CRUD operations on data. 1. Create a database: CREATEDATABASEmy_first_db; 2. Create a table: CREATETABLEbooks(idINTAUTO_INCREMENTPRIMARYKEY, titleVARCHAR(100)NOTNULL, authorVARCHAR(100)NOTNULL, published_yearINT); 3. Insert data: INSERTINTObooks(title, author, published_year)VA


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Chinese version
Chinese version, very easy to use

WebStorm Mac version
Useful JavaScript development tools