oracle11g

change database name controlfiles after restore?

白昼怎懂夜的黑 提交于 2019-12-06 11:39:16
问题 I have restored database with the name DB to another database called DB01 it is in STARTED status (not mounted) and it seems I can not change the name if it is not mounts, and I can not mount it because of the name, how to solve this issue if possible? I have RMAN full backup from DB on my current server which hosting the database DB01 the initdb01.ora is ready and configured with DB01 what can I do next nid did not help! it asks for the database to be mounted! which i can not mount it ORA

Querying Oracle 11g multidimensional cube from sqldeveloper

↘锁芯ラ 提交于 2019-12-06 11:39:00
Im new to oracle multidimensional models... I have followed the "Creating a Multidimensional Model" 15 min Oracle tutorial. Tutorial Link Note: This tutorial use sql developer data modeler. I would like to know how to query the created data cube using SQL Developer (I.E. using regular SQL DML statements). Every time I look for information online I end up getting links on how to use the Oracle Analytic Workspace Manager. Why? I would like to just build the cube and query it without having to make use of the Oracle Analytic Workspace Manager. I would appreciate if somone could let me know if I

Tomcat session.ser [closed]

不想你离开。 提交于 2019-12-06 11:32:31
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . im using apache-tomcat6.0.24..and Enterprise Linux Enterprise Linux Server release 5.6 to install my EGRCM application.when im restarting my tomcat it will araise some exceptions..the problem is when redeploy my appplication it could not open..please help me find out the problem. thanks in advance. The problem will be shown below on.StandardManager doUnload SEVERE: IOException while saving persisted sessions:

How to use ROLLUP, RANK() with pivot table in Oracle11g

这一生的挚爱 提交于 2019-12-06 11:22:02
Table schema CREATE TABLE customer ( id NUMERIC, lname VARCHAR (30), fname VARCHAR (30) NOT NULL, street VARCHAR (30) NOT NULL, city VARCHAR (30) NOT NULL, zipcode NUMERIC (5) NOT NULL, state VARCHAR (2) NOT NULL, phone VARCHAR (12) NOT NULL, creditscore NUMERIC, credit_org VARCHAR (30), cs_date DATE, CONSTRAINT customer_pk PRIMARY KEY (id) ); Requirement: Part 1: Create a pivot table to list the number of customers by location ('PA', 'CA', 'NY', 'MD') and also by creditscore range. For creditscore range, create 3 segments, 'LOWER RANGE(500-600)' defined as those with credit score between 500

ORA-00904 when inserting/querying data from tables

微笑、不失礼 提交于 2019-12-06 11:00:56
问题 I'm getting the flowing error: Error starting at line 1 in command: INSERT INTO driver (registration, make, model, gvw, year, body) VALUES('4585 AW','ALBION','RIEVER',20321,1963, ' '); Error at Command Line:1 Column:53 Error report: SQL Error: ORA-00904: "BODY": invalid identifier 00904. 00000 - "%s: invalid identifier" When I do the following INSERT INTO driver (registration, make, model, gvw, year) VALUES ('4585 AW','ALBION','RIEVER',20321,1963, ' '); So I temporally deleted the body data

Oracle Database in Google Compute Engine

点点圈 提交于 2019-12-06 09:53:44
问题 I have installed Oracle 11g Standard Edition in a Google Compute Engine (GCE) virtual machine (Windows Server 2012 Datacenter). I have created an inbound and outbound rule for tcp:1521 in the Windows Firewall. At the same time, I have created a tcp:1521 firewall rule for GCE network. When I connect to my database using SQL Developer from localhost everything works. However, if I try to connect to the database from a remote host (also using SQL Developer) I obtained an error: Status: Failure -

Unexpected result of multiset mapping in Oracle SQL

末鹿安然 提交于 2019-12-06 09:53:22
问题 Please help me to confirm is that behavior explained below is a bug, or clearly explain why it's right. There are a high probability that I misunderstood some concept, but now for me it looks like a bug. All examples below simplified as much as possible to demonstrate core of the issue. Real situation is very complex, so only general answers and workarounds related to principle of query construction is acceptable. You are welcome to ask clarifying questions in comments and i'll try to do my

Laravel dosen't connect with Oracle

懵懂的女人 提交于 2019-12-06 09:26:19
问题 I'm using yajra/laravel-oci8 for Oracle connection with laravel. But I couldn't connected to Oracle, from my client PC to Server. showing this error: I'm using this code in database.php: 'oracle' => array( 'driver' => 'oracle', 'host' => '192.168.152.189',// this is my server IP 'port' => '1521', 'database' => 'ocp', 'username' => 'ocpl', 'password' => '123456', 'charset' => 'AL32UTF8', 'prefix' => '', 'port' => 1521 ), But I'm connected with Sql Developer. see the Sql-Developer Property: 回答1

Convert comma separated values to rows in Oracle

夙愿已清 提交于 2019-12-06 09:12:12
I have a table named student_info in my database.There are multiple columns out of which two columns store comma separated values class_id student marks ---------------------------------------------- 1 tom,jam,tim 55,65,75 2 rim,gum,ram 33,66,77 i want the output to be as follows class_id student marks ------------------------------------------------ 1 tom 55 1 tom 65 1 tom 75 1 jam 55 1 jam 65 1 jam 75 1 tim 55 1 tim 65 1 tim 75 my Query as below SELECT student_id,TRIM(REGEXP_SUBSTR(student, '[^,]+', 1, level)) student_name FROM STUDENT_INFO CONNECT BY level <= REGEXP_COUNT(student, '[^,]+')

How to properly Export results of select statement into Csv file using spool in oracle sql developer

◇◆丶佛笑我妖孽 提交于 2019-12-06 08:38:28
Code: set heading off set arraysize 1 set newpage 0 set pages 0 set feedback off set echo off set verify off spool 'c:\farmerList.csv' / select FIRSTNAME','LASTNAME','TRN','CELL','PARISH spool off The file is being saved to the directory, however it is saving the "select FIRSTNAME','LASTNAME','TRN','CELL','PARISH" and not the results of the query in csv format. What am i doing wrong? Your select is incomplete as you don't have a from clause, but not sure if you've lost that in the copy-and-paste. As it is there is nothing to run, since the partial statement is never executed (no terminating ;