PL SQL SQL - group
Hi allThanks for your time in advance. I have the situation where I need quantities of different domain group but one of the fields must be reorganized. Not sure how best to explain this in the text. But, please see the example below. With the help of 11g
SELECT 80 AMOUNT, 111 ACCOUNT_NUM, 123 CHECK_NUM FROM DUAL
UNION ALL
SELECT 100 AMOUNT, 111 ACCOUNT_NUM, 124 CHECK_NUM FROM DUAL
UNION ALL
SELECT 120 AMOUNT, 111 ACCOUNT_NUM, 125 CHECK_NUM FROM DUAL
Expected result:AMOUNT ACCOUNT_NUM CHECK_NUM
200 111 123,124,125
Thank you
I guess you wanted to say 300 was the amount in your example? (80 + 100 + 120)?
I have 10g, but here's one way:
with t as (
SELECT 80 AMOUNT, 111 ACCOUNT_NUM, 123 CHECK_NUM FROM DUAL
UNION ALL
SELECT 100 AMOUNT, 111 ACCOUNT_NUM, 124 CHECK_NUM FROM DUAL
UNION ALL
SELECT 120 AMOUNT, 111 ACCOUNT_NUM, 125 CHECK_NUM FROM DUAL
)
select sum(amount), account_num,
RTRIM(XMLAGG(XMLELEMENT(c, check_num||',') order by check_num).EXTRACT ('//text()'), ',') check_nums
from t
group by account_num
SUM(AMOUNT) ACCOUNT_NUM CHECK_NUMS
300 111 123,124,125
Tags: Database
Similar Questions
-
SQL in group by
I have a table called test and the data in the table from below
Amount of SNO startdate enddate
10000 10/1 / 2001 9/30/2003 10.34
10000 10/1 / 2003 9/30/2005 15.89
10000 10/1 / 2005 9/30/2007 15.89
10000 10/1 / 2007 9/30/2013 10.34
10000 10/1 / 11/30/2013 2013, 15.89
10000 12/1 / 2013 12/31/4 000 27
I want the results in this way. expected results of this way
Amount of SNO startdate enddate
10000 10/1 / 2001 9/30/2003 10.34
10000 10/1 / 2003 9/30/2007 15.89
10000 10/1 / 2007 9/30/2013 10.34
10000 10/1 / 11/30/2013 2013, 15.89
10000 12/1 / 2013 12/31/4 000 27
Under query not giving good results. Please help any with the query
Select min (startdate), max (endate), sno, amount
of the TEST
Group by sno, amount
Hello
Why do you want 2 separate lines of output for amount = 15.89? Why you want to combine the lines where startdate is in 2033 and in 2005, but not the line where startdate is in 2013? Is this because another line, with a different amount, comes between 2005 and 2013, and but no rank with a different amount comes between 2003 and 2005?
If so, maybe you want something like:
WITH got_diff AS
(
SELECT sno, startdate, enddate, amount
, ROW_NUMBER () OVER (PARTITION BY sno - just guessing
ORDER BY startdate
)
-ROW_NUMBER () OVER (PARTITION BY sno, amount
ORDER BY startdate
) AS diff
OF the test
)
SELECT sno
(MIN) startdate) AS first_startdate
MAX (enddate) AS last_enddate
quantity
OF got_diff
GROUP BY sno, amount, diff
ORDER BY sno, first_startdate
;
For an explanation of the technique used here fixed difference, see
-
I have a request in the form
Select Group, bill, table Qty.
and output as below
Advantage Bill Qty
=== ===== =======
x 1 XXX 50
x 1 XXX 50
x 1 XXX 60
Y1 YYY 23
Y1 YYY 50
but I want to output as below
Advantage Bill Qty
=== ===== =======
x 1 XXX 50
50
60
Y1 YYY 23
50
How can I get this help please
Hello
If you use SQL * more then you simply need to use 'BREAK' (and an ORDER BY.)
WE BREAK bill WE left
SELECT Bill, part Qty.
FROM MyTable
ORDER BY 1, 2, 3
;
Best regards
Bruno Vroman.
-
SQL GROUP BY / HAVING a question
Hello
A few days earlier, I came across an interview question that I can not resolve correctly.
In short, there are two tables: BOOKS and TAGS.
ID TITLE AUTHOR 1 Twilight Stephenie Meyer 2 Catch fire Suzanne Collins 3 Animal farm George Orwell BOOK_ID TAG 1 Best Seller 1 Science Fiction 1 TOP10 2 Best Seller 2 Note. 2 TOP10 3 TOP110 However several tags and the result must be a set of appropriate books, users can enter.
For example, in the case of tags 'Best Seller', 'Science Fiction' and 'Top 10', the result must be "Twilight."
My solution was something like this:
SELECT b.title FROM books b WHERE b.id IN ( SELECT book_id FROM tags WHERE LOWER(tag) = 'best seller' ) AND b.id IN ( SELECT book_id FROM tags WHERE LOWER(tag) = 'science fiction' ) AND b.id IN ( SELECT book_id FROM tags WHERE LOWER(tag) = 'top10' )
But it is definetaly not an elegant and flexible query. In the case of labels of 10 or more incoming, we get a code 'spagetti '.
Somehow, it should be possible to resolve using GROUP BY and HAVING, but I don't really know how.
Could someone help what would be the most elegant solution to this problem?
Thank you so much in advance.
Maybe:
SQL >-generating sample data:
SQL > with books like)
2. select id 1, the title of 'Twilight', author of "Stephenie Meyer" Union double all the
3 select 2, "Taking fire", "Suzanne Collins' Union double all the
4 Select 3, 'Animal Farm', 'George Orwell' of the double
5)
6, tags such as)
7 select 1 book_id, tag "Best Seller" of all the double union
8. Select 1, 'Science Fiction' from dual union all
9. Select 1, 'TOP10' from dual union all
10. Select 2, 'Best Seller' from dual union all
11. Select 2, 'Roman' from dual union all
12. Select 2, 'TOP10' from dual union all
13. Select 3, 'TOP110' from dual
14)
15-
16 - the actual query:
17-
18 select b.title
Books b 19
20, tags t
21 where t.book_id = b.id
22 and t.tag ('Best Seller', 'Science Fiction', 'Top 10')
23 by b.title group
24 after having count (*) = 3
25.
TITLE
-------------
Twilight
1 selected line.
-
-SQL - GROUP BY clause: fields of nonaggregate mandate
Hello
I study data (especially data recovery) and found something interesting.
When you use an aggregate function in the SELECT clause, it is mandatory to have all fields that are not aggregated in the SELECT clause to be there in the GROUP BY clause.
For example,.
SELECT dept_no, Salary
The EMPLOYEE
GROUP BY dept_no;
The SQL above works fine.
But what happens if the user forgets the dept_no in the GROUP BY clause or the clause GROUP BY itself is missing?
Certainly, it is a mistake.
Why this error is not handled by the database. I mean, the database must be smart/pretty smart to add the GROUP BY clause by itself. So let's assume that, if I miss the GROUP BY clause or miss a field no aggregated from the SELECT clause when I get at least an aggregate function on a field with at least a no aggregated field in the SELECT clause, the database should check the GROUP BY clause at compile time and add mandate missed the fields in the GROUP BY clause.
Example,
SQL1:_
SELECT dept_no, Salary
The EMPLOYEE
GROUP BY dept_no;
SQL2:_
SELECT dept_no, Salary
The EMPLOYEE;
Here, the SQL1 and SQL2, both should give me same output without error.
I can't understand why this is handled?Hello
998478 wrote:
... If we mix the aggregated and non-aggregated values, then there must be a GROUP BY clause that contains all non-aggregated values. Why this is handled by the database/compiler itself?It IS managed by the compiler itself. The compiler manages to trigger an error. The compiler has no way of knowing if you want to remove something from the SELECT clause, or add something to the GROUP BY clause, or not to use the aggregate functions or use several aggregate functions, or a combination of the above. If the compiler re-writes your code and none of these things done automatically, it would be wrong more often that he was right, and you would (rightly) complain about his behavior.
For example, it is clearly wrong:
SELECT deptno , job , SUM (sal) FROM scott.emp GROUP BY deptno ;
What is the right way to fix it?
1. remove something from the SELECT clause
SELECT deptno , SUM (sal) FROM scott.emp GROUP BY deptno ;
2. add something to the GROUP BY clause
SELECT deptno , job , SUM (sal) FROM scott.emp GROUP BY deptno , job ;
3. do not use aggregate functions
SELECT deptno , job , sal FROM scott.emp ;
4. use several aggregate functions
SELECT deptno , MIN (job) , SUM (sal) FROM scott.emp GROUP BY deptno ;
What are all the options, either. For example, the correct solution would be to use analytical functions instead of aggregate functions.
How can anyone tell which of them is right? They all have the right answer for some problem.Moreover, by saying that everying in the SELECT clause must be an aggregate or in the GROUP BY clause is a bit oversimplified.
Fuller, here's the ABC of GROUP BY:
When you use a GROUP BY clause or in an aggregate function, then all in the SELECT clause must be:
(A) a ggregate function,
(B) one of the expressions "group By."
(C) adding to C, or
(D) something that Depends on the foregoing. (For example, if you "GROUP BY TRUNC (dt)", you can SELECT "TO_CHAR (TRUNC (dt), 'Mon - DD')").Published by: Frank Kulash on April 13, 2013 13:44
Additional code examples. -
Need a query sql for obtaining the planned op, please notify--General Employee table -- Version: oracle 11g Rel 2 create table employee (ID varchar2(100),first_name varcha2(200),last_name varchar2(200),start_date date,end_date date,city varchar2(100)) select listagg(First_name,',') within group (order by first_name) from employee group by city ; op: 1. XXX,YYy,ZZZ 2. AAA,SSS Excepted OP: 1. 1.XXX,2.YYY,3.ZZZ 2. 1.AAA,2.SSS
Thanks in advance
Carole Kumar
Edited by: 876377 may 1, 2012 22:04876377 wrote:
--General Employee table -- Version: oracle 11g Rel 2 select listagg(First_name,',') within group (order by first_name) from employee; op: 1. XXX,YYy,ZZZ 2. AAA,SSS Excepted OP: 1. 1.XXX,2.YYY,3.ZZZ 2. 1.AAA,2.SSS
Need a query sql for obtaining the planned op, please notify
Thanks in advance
Carole KumarTry to use
row_number over (partition by ID_COLUMN order by first_name) as RN
And then
listagg( rn || first_name)
Since you don't validate your description of table we do not know what are the columns, etc... I guessed that the ID column is named ID_COLUMN, adjust accordingly.
-
SQL grouping and summing impossible?
I want to create a sql query to summarize some data, but I'm starting to think that it is impossible with sql only. The data I have is of the following form:
The data are classified by TRAN_DT and by TRAN_RS. THA grouping and summing data based on tran_rs, but only when it changes. If in the table above, I don't want to see all the first 3 records but only one value DEBT the sum of these 3 i.e. 100 + 150 + 250 = 500. If the table above after grouping would be similar to that below:TRAN_DT TRAN_RS DEBT CRED 10-Jan 701 100 0 20-Jan 701 150 0 21-Jan 701 250 0 22-Jan 705 0 500 23-Jan 571 100 0 24-Jan 571 50 0 25-Jan 701 50 0 26-Jan 701 20 0 27-Jan 705 0 300
The TRAN_DT is the last value of the record sum. I undestand that the tran_dt are not selectable. What I've tried so far is the following query:TRAN_DT TRAN_RS DEBT CRED 21-Jan 701 500 0 22-Jan 705 0 500 24-Jan 571 150 0 26-Jan 701 70 0 27-Jan 705 0 300
Is it still possible with only sql, any thoughts?select tran_dt, tran_rs, sum(debt)over(partition by tran_rs order by tran_dt rows unbounded preceding), sum(cred)over(partition by tran_rs order by tran_dt rows unbounded preceding) from that_table
The report that I am creating in BI Publisher.Maybe it is possible to group the data in the model and my question here?The Re: tutorial method Tabibitosan by Aketi Jyuuzou me would be very useful here:
with sample_data as (select to_date('10/01/2012', 'dd/mm/yyyy') tran_dt, 701 tran_rs, 100 debt, 0 cred from dual union all select to_date('20/01/2012', 'dd/mm/yyyy') tran_dt, 701 tran_rs, 150 debt, 0 cred from dual union all select to_date('21/01/2012', 'dd/mm/yyyy') tran_dt, 701 tran_rs, 250 debt, 0 cred from dual union all select to_date('22/01/2012', 'dd/mm/yyyy') tran_dt, 705 tran_rs, 0 debt, 500 cred from dual union all select to_date('23/01/2012', 'dd/mm/yyyy') tran_dt, 571 tran_rs, 100 debt, 0 cred from dual union all select to_date('24/01/2012', 'dd/mm/yyyy') tran_dt, 571 tran_rs, 50 debt, 0 cred from dual union all select to_date('25/01/2012', 'dd/mm/yyyy') tran_dt, 701 tran_rs, 50 debt, 0 cred from dual union all select to_date('26/01/2012', 'dd/mm/yyyy') tran_dt, 701 tran_rs, 20 debt, 0 cred from dual union all select to_date('27/01/2012', 'dd/mm/yyyy') tran_dt, 705 tran_rs, 0 debt, 300 cred from dual), tabibitosan as (select tran_dt, tran_rs, debt, cred, dense_rank() over (order by tran_dt, tran_rs, rownum) - dense_rank() over (partition by tran_rs order by tran_dt, rownum) grp from sample_data) select max(tran_dt), tran_rs, sum(debt) debt, sum(cred) cred from tabibitosan group by tran_rs, grp order by 1, 2; TRAN_DT TRAN_RS DEBT CRED ---------- ---------- ---------- ---------- 21/01/2012 701 500 0 22/01/2012 705 0 500 24/01/2012 571 150 0 26/01/2012 701 70 0 27/01/2012 705 0 300
ETA: I added the rownum in analytical functions to take account of the "encounters" where a tran_rs has multiple entries for the same tran_dt. If you have some other unique key to use (for example, the primary key of the table) then I would use instead.
Published by: Boneist on February 17, 2012 11:41
-
Hello everyone,
I'm trying to get a count of all nulls v/s of the non-null values in a table. I'm trying to to do this, use the CASE statement.
I trained the SQL following so far.
It only gives me the desired result. My goal will look likeSELECT count(Aj.Asset_Hdr_Id), CASE Nvl(Aj.Asset_Hdr_Id, 0) WHEN 0 THEN 'IS NULL' ELSE 'IS NOT NULL' END FROM Asset_Jt Aj GROUP BY Nvl(Aj.Asset_Hdr_Id, 0);
I get a result that looks like this2089 IS NULL 12340 IS NOT NULL
1 0 IS NULL 2 1 IS NOT NULL 3 1 IS NOT NULL 4 1 IS NOT NULL 5 1 IS NOT NULL
Try this,
SELECT COUNT (*), result FROM (SELECT CASE NVL (Aj.Asset_Hdr_Id, 0) WHEN 0 THEN 'IS NULL' ELSE 'IS NOT NULL' END result FROM Asset_Jt Aj) GROUP BY result;
G.
-
Hi all
I'm writing a query that selects records that are not within a period of 90 days from the other beginning with the first date. Is that records are selected that are more than 90 days, independently of each other. So, for the next game
(Tbl) CREATE TABLE
class VARCHAR2 (3200),.
actiondate DATE);
INSERT INTO tbl
VALUES ("C1",
"(2007-02-12');
INSERT INTO tbl
VALUES ("C1",
"(2007-06-01');
INSERT INTO tbl
VALUES ("C1",
"(01/05/2009 ');
INSERT INTO tbl
VALUES ("C1",
"(01/07/2009 ');
INSERT INTO tbl
VALUES ("C1",
"(01/09/2009 ');
INSERT INTO tbl
VALUES ("C1",
October 1, 2009 ");"
INSERT INTO tbl
VALUES ("C1",
01/01/2010');
INSERT INTO tbl
VALUES ("C1",
"(2010-02-01');
INSERT INTO tbl
VALUES ("C1",
"(2010-03-01');
INSERT INTO tbl
VALUES ("C1",
"(2010-05-01');
INSERT INTO tbl
VALUES ("C1",
"(07/30/2009 ');
INSERT INTO tbl
VALUES ("C1",
"(29/07/2009 ');
INSERT INTO tbl
VALUES ("C2",
"(2008-02-01');
INSERT INTO tbl
VALUES ("C2",
"(2008-05-02');
INSERT INTO tbl
VALUES ("C2",
"(2008-06-01');
INSERT INTO tbl
VALUES ("C2",
October 15, 2008 ');
INSERT INTO tbl
VALUES ("C2",
01/01/2009');
INSERT INTO tbl
VALUES ("C2",
' (15/02/2009 ');
INSERT INTO tbl
VALUES ("C2",
"(30/05/2009 ');
INSERT INTO tbl
VALUES ("C2",
October 1, 2009 ");"
I need to return the following documents
CLASS ACTIONDATE
C1, 12/02/2007
C1, 01/06/2007
C1, 01/05/2009
C1, 01/09/2009
C1, 01/01/2010
C1, 01/05/2010
C2, 01/02/2008
C2, 02/05/2008
C2, 15/10/2008
C2, 15/02/2009
C2, 30/05/2009
C2, 01/10/2009
He tried the following query does not work
SELECT Actiondate,
Min (actiondate)
COURSES (ORDER BY actiondate SCOPE BETWEEN the '90' LINE PREVIOUS AND CURRENT DAY LEVEL) dt
FROM tbl
I also tried the following method, but does not work.
SELECT Ceil ((actiondate-DATE "-4712-01-01') / 90) * 90 + DATE" - 4712-01-01', "
Min (actiondate)
DUNGEON (DENSE_RANK LAST ORDER BY actiondate, rowid)
FROM tbl
GROUP BY Ceil ((actiondate-DATE "-4712-01-01') / 90) * 90 + DATE" - 4712-01-01'"
Is there a SQL to achieve or PL/SQL is the only way to do this? The pointers will be greatly appreciated.
Please consider that the table contains more than 3 million lines.
Rgds
Thank you.Hello
Here's the Dimacit of [the aforementioned thread | http://forums.oracle.com/forums/message.jspa?messageID=2526363#2526363].
I just changed the names of table and column, the length of the period spent under 2 (exclusive) days to 90 days (included) and changed the main query for your needs.WITH rns AS ( SELECT tbl.* , ROW_NUMBER() OVER ( PARTITION BY cls ORDER BY actiondate ) AS rn FROM tbl ) , grp_starts AS ( SELECT cls , actiondate , rn , grp_start FROM rns MODEL PARTITION BY (cls) DIMENSION BY (rn) MEASURES ( actiondate , actiondate grp_start ) RULES ( grp_start [ANY ] ORDER BY rn = CASE WHEN grp_start [CV() - 1] IS PRESENT AND grp_start [CV()] - grp_start [CV() - 1] <= 90 THEN grp_start [CV() - 1] ELSE actiondate [CV()] END ) ) SELECT cls , actiondate FROM grp_starts WHERE actiondate = grp_start ORDER BY cls , actiondate;
Subqueries, up and including grp_starts, assign each line to a group. This is great if you want to GROUP BY this expression. If all what you want is to show the group identifier, then you might be able to shorten the above query a bit.
Class is a keyword, so it's not a good choice for a column name. I called this cls of the column instead.
July 30 is exactly 90 days after May 1. If you want a group to contain all less than 90 days after the date of the first in the group, then it seems that you would want a new group to begin July 30. The output you posted, it's what I expected, if a group is all less than or equal to 90 days after the beginning of the group.
-
Hi friends
I have a table like this
I want to make a report asname birth_date john 01.01.1990 sue 02.05.2000 abraham 04.07.1998 ..........
How can I do this?age sum 0-17 30 18-24 25 15-34 32 35-44 14 45-54 8 55+ 4
The geometrico elsewhere perhaps is just an internal query where you define groups of age, and then outside the Group:
with dummydata as ( select 'AAA' name, to_date('01.01.1995','dd.mm.yyyy') birth_date from dual union all select 'AAA' name, to_date('01.01.1990','dd.mm.yyyy') birth_date from dual union all select 'AAA' name, to_date('01.11.1975','dd.mm.yyyy') birth_date from dual union all select 'AAA' name, to_date('01.11.1980','dd.mm.yyyy') birth_date from dual union all select 'AAA' name, to_date('01.01.1991','dd.mm.yyyy') birth_date from dual union all select 'AAA' name, to_date('01.01.1969','dd.mm.yyyy') birth_date from dual union all select 'AAA' name, to_date('01.01.1970','dd.mm.yyyy') birth_date from dual union all select 'AAA' name, to_date('01.01.1960','dd.mm.yyyy') birth_date from dual ) select age_group , count(*) from( select case when trunc( months_between(sysdate, birth_date) / 12 ) <= 17 then '0-17' when trunc( months_between(sysdate, birth_date) / 12 ) <= 24 then '18-24' when trunc( months_between(sysdate, birth_date) / 12 ) <= 34 then '25-34' when trunc( months_between(sysdate, birth_date) / 12 ) <= 44 then '35-44' when trunc( months_between(sysdate, birth_date) / 12 ) <= 54 then '45-54' -- and so on... else 'n/a' end age_group from dummydata ) group by age_group order by age_group ; AGE_GROUP COUNT(*) --------- ---------- 0-17 1 18-24 2 25-34 1 35-44 3 45-54 1 5 rows selected.
-
Replica groups of ' Always on ' SQL Server 2012 - limited to 2 knots on VMWare?
VMWare KB1037959 provides instructions for Microsoft clustering on VMWare, but does not have SQL Server replica groups cover 2012 "Always on."
This KB article sets a limit of 2-node MSCS clusters, but also indicates that "the SQL mirror effect is not by VMware to be a clustering solution. VMware supports fully mirroring SQL on vSphere with no specific restrictions. »
In SQL, 2012 replica groups are a combination of failover Microsoft Cluster Service (MSCS) monitor and SQL database mirroring. Yo I have to install the 'Fail on Microsoft Cluster' role to implement the SQL replica groups, master didn't have any shared disks.
I was not able to find guidance on the use of groups of replica SQL 2012 on VMWare. I hope that it is supported without restriction (as long as you do not use a shared quorum disk), but a strict interpretation of the KB1037959 leads to a limitation of two nodes.
Can anyone shed more light on this?
Now the last row of the first table lists:
Availability of AlwaysOn SQL group Yes Yes1 Yes Yes Even OS/app Yes Yes Yes Yes N/A N/A Perhaps this was added recently.
That answer your question?
-
ADF security with SQL authentication
Hello
I'm new in the adf and weblogic. I use weblogic built-in jdev 12 c 12.1.2.
I set up the security in my weblogic using this blog.
http://adfgouravtkiet.blogspot.com/2012/07/Configuring-ADF-security-using-database.html
It is configured successfully. But after you configure when I restart my weblogic server, it will fail to start. This is stack strace.
< 16 April 2014 17:46:33 hours CEST > < error > < security > < BEA-090870 > < the domain 'myrealm' could not be loaded: weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: java.lang.NullPointerException.
weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: java.lang.NullPointerException
at weblogic.security.service.CSSWLSDelegateImpl.initializeServiceEngine(CSSWLSDelegateImpl.java:341)
at weblogic.security.service.CSSWLSDelegateImpl.initialize(CSSWLSDelegateImpl.java:220)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.InitializeServiceEngine(CommonSecurityServiceManagerDelegateImpl.java:1812)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealm(CommonSecurityServiceManagerDelegateImpl.java:447)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadRealm(CommonSecurityServiceManagerDelegateImpl.java:845)
Truncated. check the log file full stacktrace
Caused by: com.bea.common.engine.ServiceInitializationException: java.lang.NullPointerException
at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:365)
at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:315)
at com.bea.common.engine.internal.ServiceEngineImpl.lookupService(ServiceEngineImpl.java:257)
at com.bea.common.engine.internal.ServicesImpl.getService(ServicesImpl.java:72)
at weblogic.security.service.internal.WLSIdentityServiceImpl.initialize(WLSIdentityServiceImpl.java:46)
Truncated. check the log file full stacktrace
Caused by: java.lang.NullPointerException
at weblogic.security.providers.authentication.shared.DBMSUtils.verifyHashAlgorithmUsable(DBMSUtils.java:43)
at weblogic.security.providers.authentication.DBMSSQLAuthenticatorDelegateImpl.validateConfiguration(DBMSSQLAuthenticatorDelegateImpl.java:167)
to weblogic.security.providers.authentication.DBMSSQLAuthenticatorDelegateImpl. < init > (DBMSSQLAuthenticatorDelegateImpl.java:77)
at weblogic.security.providers.authentication.DBMSAuthenticatorDelegateImpl.getInstance(DBMSAuthenticatorDelegateImpl.java:459)
at weblogic.security.providers.authentication.DBMSSQLAuthenticationProviderImpl.initialize(DBMSSQLAuthenticationProviderImpl.java:55)
Truncated. check the log file full stacktrace
>
< 16 April 2014 17:46:33 hours CEST > < opinion > < security > < BEA-090082 > < security initialization using security realm myrealm. >
< 16 April 2014 17:46:33 hours CEST > < critical > < WebLogicServer > < BEA-000362 > < server failed. Reason:
There are 1 nested errors:
weblogic.security.service.SecurityServiceRuntimeException: security services [Security: 090399] not available
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:921)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1058)
at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:873)
at weblogic.security.SecurityService.start(SecurityService.java:148)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
>
< 16 April 2014 17:46:33 hours CEST > < opinion > < WebLogicServer > < BEA-000365 > < Server state changed to FAILED. >
< 16 April 2014 17:46:33 hours CEST > < error > < WebLogicServer > < BEA-000383 > < is not an essential service. The server shuts itself down. >
< 16 April 2014 17:46:33 hours CEST > < opinion > < WebLogicServer > < BEA-000365 > < Server state has changed to FORCE_SHUTTING_DOWN. >
Stopping Server Derby...
Derby server stopped.
Process is complete.
[End of IntegratedWebLogicServer.]
SQL authentication is configured using a data source. If I change the name of blind in weblogic in the config.xml file data source, he throws exception but able to start the server. can any body help to what he's trying to find the data source before inilizing it. Here is my file config.xml
<? XML version = "1.0" encoding = "UTF - 8"? >
"" "< domain xmlns ="http://xmlns.oracle.com/weblogic/domain"xmlns:sec ="http://xmlns.oracle.com/weblogic/security"xmlns:wls ="http://xmlns.oracle.com/weblogic/security/wls"" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "http://xmlns.oracle.com/weblogic/security/xacml http://xmlns.oracle.com/weblogic/security/xacml/1.0/xacml.xsd http://xmlns.oracle.com/weblogic/security/providers/passwordvalidator http://xmlns.oracle.com/weblogic/security/providers/passwordvalidator/1.0/passwordvalidator.xsd http://xmlns.oracle.com/oracleas/schema/11/jps/weblogic/providers http://xmlns.oracle.com/weblogic/1.0/security.xsd http://xmlns.oracle.com/weblogic/domain http://xmlns.oracle.com/ WebLogic/1.0/Domain.xsd http://xmlns.oracle.com/weblogic/security http://xmlns.oracle.com/weblogic/1.0/security.xsd http://xmlns.oracle.com/weblogic/security/wls http://xmlns.oracle.com/weblogic/security/wls/1.0/wls.xsd' > '.
< name > DefaultDomain < / name >
field < version > 12.1.2.0.0 < / domain-version >
> security configuration <
< name > DefaultDomain < / name >
< domain >
< sec: authentication - provider xsi: type = "wls:sql - authenticatorType" >
db_user < sec: name > < / sec: name >
< sec: control - flag > SUFFICIENT < / sec: control - flag >
< wls: data-source-name >workdayDS< / wls: data-source-name >
< wls:plaintext - passwords-activated > true < / wls:plaintext - passwords-enabled >
< wls:sql - get-users-Word of past > SELECT PASSWORD FROM WORKDAY_USERS WHERE username =? < / wls:sql - get-users-Word of past >
< wls:sql - user - exists > SELECT name from USER OF WORKDAY_USERS WHERE username =? < / wls:sql - user - exists >
< wls:sql - list-members-groups > short_name SELECT OF WORKDAY_user_role_grants g, workday_roles r, workday_users u WHERE g.usr_id = AND g.rle_id = r.id AND u.username u.id =? < / wls:sql - list-members-groups >
< wls:sql - list-users > SELECT USER FROM WORKDAY_USERS WHERE name LIKE USER name? < / wls:sql - list-users >
< wls:sql - get-user-description > SELECT DISPLAY_NAME FROM WORKDAY_USERS WHERE username =? < / wls:sql - get-user-description >
< wls:sql - list-groups > SELECT SHORT_NAME FROM WORKDAY_ROLES WHERE SHORT_NAME AS? < / wls:sql - list-groups >
< wls:sql - group - exists > SELECT SHORT_NAME WORKDAY_ROLES WHERE SHORT_NAME =? < / wls:sql - group - exists >
< wls:sql - East-members > SELECT u.username OF WORKDAY_user_role_grants g, WORKDAY_users u WHERE u.id = g.usr_id AND rle_id = (SELECT id FROM WORKDAY_roles WHERE short_name =?) AND usr_id = (SELECT id FROM WORKDAY_users WHERE username =?) < / wls:sql - is-member >
< wls:sql - get-group-description > SELECT name FROM workday_roles WHERE the short_name =? < / wls:sql - get-group-description >
< wls:password - algorithm > < / wls:password - algorithm >
< wls:password - style > PLAINTEXT < / wls:password - style >
< wls:sql - create-user > INSERT INTO WORKDAY_USERS (USERNAME, PASSWORD, DISPLAY_NAME) VALUES (?,?,?) < / wls:sql - create-user >
< wls:sql - user-delete > DELETE FROM WORKDAY_USERS WHERE username =? < / wls:sql - remove-user >
< wls:sql - remove group memberships > DELETE FROM WORKDAY_user_role_grants WHERE rle_id = (SELECT id FROM workday_roles WHERE short_name =?) OR usr_id = (SELECT id FROM workday_users WHERE username =?) < / wls:sql - remove group memberships >
< wls:sql - set-user-description > UPDATE WORKDAY_USERS SET DISPLAY_NAME =? WHERE USERNAME =? < / wls:sql - set-user-description >
< wls:sql - set-user-word of past > UPDATE WORKDAY_USERS SET PASSWORD =? WHERE USERNAME =? < / wls:sql - set-user-word of past >
< wls:sql - create group > VALUES INSERT INTO WORKDAY_ROLES (id, short_name, name) (ROLES_SEQ. NEXTVAL,?,?) < / wls:sql - create group >
< wls:sql - set-group-description > UPDATE workday_roles SET name =? WHERE short_name =? < / wls:sql - set-group-description >
< wls:sql - Add-Member-to-group > INSERT INTO workday_user_role_grants (id, rle_id, usr_id) VALUES (workday_user_role_grants_seq. NEXTVAL, (SELECT id FROM workday_roles WHERE short_name =?), (SELECT id FROM workday_users WHERE username =?)) < / wls:sql - Add-Member-to-group >
< wls:sql - remove-member-of-group > DELETE FROM workday_user_role_grants WHERE rle_id = (SELECT id FROM workday_roles WHERE short_name =?) AND usr_id = (SELECT id FROM workday_users WHERE username =?) < / wls:sql - remove-member-of-group >
< wls:sql - group-delete > DELETE FROM WORKDAY_ROLES WHERE short_name =? < / wls:sql - remove group >
< wls:sql - delete-Group-members > DELETE FROM workday_user_role_grants WHERE rle_id = (SELECT id FROM workday_roles WHERE short_name =?) < / wls:sql - remove group member >
< wls:sql - list-group-members > SELECT username FROM workday_user_role_grants g, workday_roles r, u workday_users WHERE g.usr_id = AND g.rle_id = r.id AND r.short_name u.id =? AND u.username AS? < / wls:sql - list-group-members >
< / sec: authentication - provider >
< sec: authentication - provider xsi: type = "wls:default - authenticatorType" >
< sec: name > DefaultAuthenticator < / sec: name >
< / sec: authentication - provider >
"< sec: authentication - provider xmlns:prov ="http://xmlns.oracle.com/oracleas/schema/11/jps/weblogic/providers"xsi: type =" prov:trust - service-identity-asserterType ">"
Trust Service identity Asserter < sec: name > < / sec: name >
< / sec: authentication - provider >
< sec: authentication - provider xsi: type = "wls:default - identity-asserterType" >
< sec: name > DefaultIdentityAsserter < / sec: name >
< dry: active-type > AuthenticatedUser < / dry: active-type >
< / sec: authentication - provider >
"< sec: role - Mapper xmlns:xac ="http://xmlns.oracle.com/weblogic/security/xacml"xsi: type =" xac:xacml - role-mapperType ">"
< sec: name > XACMLRoleMapper < / sec: name >
< / sec: role - Mapper >
"< sec: authorizer xmlns:xac ="http://xmlns.oracle.com/weblogic/security/xacml"xsi: type =" xac:xacml - authorizerType ">"
< sec: name > XACMLAuthorizer < / sec: name >
< / sec: authorizer >
< sec: adjudicator xsi: type = "wls:default - adjudicatorType" >
< sec: name > DefaultAdjudicator < / sec: name >
< / sec: adjudicator >
< sec: credential - Mapper xsi: type = "wls:default - credential-mapperType" >
< sec: name > DefaultCredentialMapper < / sec: name >
< / sec: credential - Mapper >
< sec: cert - path-provider xsi: type = "wls:web - logic-cert-path-providerType" >
< sec: name > WebLogicCertPathProvider < / sec: name >
< / sec: cert - path-supplier >
< sec: cert - road-builder > WebLogicCertPathProvider < / sec: cert - road-builder >
< sec: name > myrealm < / sec: name >
"< sec: password - validator = xmlns:pas"http://xmlns.oracle.com/weblogic/security/providers/passwordvalidator"xsi: type =" not: System-Password - validatorType ">"
< sec: name > SystemPasswordValidator < / sec: name >
< not: min - password - > 8 length < / not: min - password - length >
< not: min-digital - or - special-characters > 1 < / not: min-digital - or - special characters >
< / sec: password - validator >
< / domain >
< domain >
< sec: authentication - provider xsi: type = "wls:sql - authenticatorType" >
db_user < sec: name > < / sec: name >
< sec: control - flag > OPTIONAL < / sec: control - flag >
< / sec: authentication - provider >
< s: deploy-credential-mapping-ignored > true < / sec: deploy-credential-mapping-ignored >
RDBMS < sec: name > < / sec: name >
< / domain >
field < default > myrealm < / default domain >
< credentials encrypted > {ESA} oiXGiKafJRTHRLy3teTxciHGGJde23frXWjmnQAK2qQIuRYhySgd6oh/ZsnHQK1u99KboPN4Tjo5uS6tg37hufUPCJIdgDAhAOjBEZHVTXFc4YwQmZ6jdCpqlqEjUOkK < / encrypted credential >
WebLogic < node-Manager-user name > < / node-Manager-user name >
{ESA} < node-Manager-password - encrypted > dPzCkXm4Z8SaMVCroCwFXEIvbz/FTMroi8W/aDM7blA = < / node-Manager-password encrypted >
< use-kss-for-demo > true < / use-kss-for-demo >
< / security configuration >
< Server >
< name > DefaultServer < / name >
< ssl >
< name > DefaultServer < / name >
< enabled > true < / enabled >
< Listening port >
8102
< / Listen-port >
< two - way ssl compatible > true < / two - way compatible ssl >
< / ssl >
< Listening port >
8101
< / Listen-port >
> web server <
< name > DefaultServer < / name >
< log-server-web >
< name > DefaultServer < / name >
< elf fields > date time cs-method ctx-ctx - sc-status cs - uri DIN ecid < / elf fields >
<-log file format > extended < / format of log file-->
< / Web-server log >
< / web server >
BRP1LAP16 < listen-address > < / listen-address >
< tunneling-enabled > true < / tunnel-enabled >
<-diagnosis-server configuration >
< name > DefaultServer < / name >
< diagnosis-context-activated > true < / diagnosis-context-enabled >
< / config-diagnosis-server >
defaultCoherenceCluster < consistency cluster-system-resource > < / coherence-cluster-system-resources >
< / Server >
< incorporated-ldap >
< name > DefaultDomain < / name >
< credentials encrypted > {ESA} WRTXOv5WcAtcIZFA7g9azU4v/ogflkbFEN1TAdhhGbU6R7RiiSfLaouE6fgnkjRg < / encrypted credential >
< / embedded-ldap >
configuration < version > 12.1.2.0.0 < / configuration-version >
< app deployment >
State-management-provider-memory-rar < name > < / name >
DefaultServer < target > < / target >
RAR < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/com.Oracle.State-management.State-management-provider-memory-RAR-impl_12.1.2.rar < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / app-deployment >
< app deployment >
DMS Application #11.1.1.1.0 < name > < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.dms_12.1.2/DMS.war < source path > < / source-path >
< deployment-order > 5 < / order of deployment >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / app-deployment >
< app deployment >
< name > wsil-wls #12.1.2.0.0 < / name >
DefaultServer < target > < / target >
ear of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/com.Oracle.WebServices.FMW.WSIL-WLS-impl_12.1.2.ear < source path > < / source-path >
< deployment-order > 5 < / order of deployment >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / app-deployment >
< app deployment >
< name > coherence-transaction-rar < / name >
DefaultServer < target > < / target >
RAR < module-type > < / module-type >
< source path - > C:/Oracle12c/Middleware/Oracle_Home/oracle_common /... /Coherence/lib/Coherence-transaction.rar < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / app-deployment >
< app deployment >
< name > wsm - h < / name >
DefaultServer < target > < / target >
ear of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.WSM.pm_12.1.2/WSM-pm.ear < source path > < / source-path >
< deployment-order > 5 < / order of deployment >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / app-deployment >
< Library >
[email protected] oracle.sdp.client # < name > < / name >
DefaultServer < target > < / target >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.SDP.client_12.1.2/sdpclient.jar < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.pwdgen # < name > < / name >
DefaultServer < target > < / target >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.pwdgen_12.1.2/pwdgen.jar < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] owasp.esapi # < name > < / name >
DefaultServer < target > < / target >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.owasp_12.1.2/OWASP-esapi.jar < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.wsm.seedpolicies # < name > < / name >
DefaultServer < target > < / target >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.WSM.common_12.1.2/WSM-seed-policies.jar < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] odl.clickhistory # < name > < / name >
DefaultServer < target > < / target >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.odl_12.1.2/clickhistory.jar < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] odl.clickhistory.webapp # < name > < / name >
DefaultServer < target > < / target >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.odl_12.1.2/clickhistory.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
< name > oracle.jrf.system.filter < / name >
DefaultServer < target > < / target >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.jrf_12.1.2/system-filters.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.jsp.next # < name > < / name >
DefaultServer < target > < / target >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.jsp_12.1.2/ojsp.jar < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
< name > oracle.dconfig - infra #[email protected] < / name >
DefaultServer < target > < / target >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.dConfig-infra_12.1.2.jar < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
< name > orai18n-adf #[email protected] < / name >
DefaultServer < target > < / target >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.nlsgdk_12.1.2/orai18n-ADF.jar < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.adf.dconfigbeans # < name > < / name >
DefaultServer < target > < / target >
jar of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.ADF.dconfigbeans_12.1.2.jar < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] adf.oracle.domain # < name > < / name >
DefaultServer < target > < / target >
ear of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.ADF.model_12.1.2/ADF.Oracle.domain.ear < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] adf.oracle.businesseditor # < name > < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.ADF.businesseditor_12.1.2/ADF.businesseditor.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.adf.management # < name > < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.ADF.management_12.1.2/ADF-management.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] adf.oracle.domain.webapp # < name > < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.ADF.view_12.1.2/ADF.Oracle.domain.webapp.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
< name > jsf #[email protected]< / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.jsf_2.1/JSF-RI-21.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
< name > jstl #[email protected] < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:\Oracle12c\Middleware\Oracle_Home\wlserver/common/deployable-libraries/JSTL-1.2.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
< name > UIX #[email protected] < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.uix_12.1.2/uix11.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
< name > ohw - FRC #[email protected] < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.help_5.0/OHW-RCF.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
< name > ohw - uix #[email protected] < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.help_5.0/OHW-UIX.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.adf.desktopintegration.model # < name > < / name >
DefaultServer < target > < / target >
ear of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.ADF.desktopintegration.model_12.1.2/Oracle.ADF.desktopintegration.model.ear < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.adf.desktopintegration # < name > < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.ADF.desktopintegration_12.1.2/Oracle.ADF.desktopintegration.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.bi.jbips # < name > < / name >
DefaultServer < target > < / target >
ear of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.bi.presentation_12.1.2/bi-jbips-SLIB-stub.ear < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.bi.composer # < name > < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.bi.presentation_12.1.2/bi-composer-SLIB-stub.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.bi.adf.model.slib # < name > < / name >
DefaultServer < target > < / target >
ear of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.bi.presentation_12.1.2/bi-ADF-Model-SLIB.ear < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.bi.adf.view.slib # < name > < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.bi.presentation_12.1.2/bi-ADF-view-SLIB.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.bi.adf.webcenter.slib # < name > < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.bi.presentation_12.1.2/bi-ADF-WebCenter-SLIB.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
<>shutdown-class
< name > DMSShutdown < / name >
DefaultServer < target > < / target >
< deployment-order > 150 < / order of deployment >
> class name < oracle.dms.wls.DMSShutdown < / class name >
< / stop-class >
<>start-class
< name > class start JPS < / name >
DefaultServer < target > < / target >
< deployment > 115 order < / order of deployment >
> class name < oracle.security.jps.wls.JpsWlsStartupClass < / class name >
< failure-is-fatal > false < / failure-is-fatal >
< charge-before-app-deployments > true < / load-front-app-deployments >
< charge-before-app-activation > true < / load-front-app-activation >
< / start class >
<>start-class
< name > JPS start after Activation class < / name >
DefaultServer < target > < / target >
< deployment-order > 160 < / order of deployment >
> class name < oracle.security.jps.wls.JpsWlsPostServiceActivationStartup < / class name >
< failure-is-fatal > false < / failure-is-fatal >
< charge-before-app-deployments > false < / load-front-app-deployments >
< charge-before-app-activation > true < / load-front-app-activation >
< / start class >
<>start-class
< name > class start WSM < / name >
DefaultServer < target > < / target >
> class name < oracle.wsm.config.WSMServerStartupShutdownProvider < / class name >
< / start class >
<>start-class
< name > class start JRF < / name >
DefaultServer < target > < / target >
< deployment > 110 order < / order of deployment >
> class name < oracle.jrf.wls.JRFStartup < / class name >
< failure-is-fatal > false < / failure-is-fatal >
< charge-before-app-deployments > true < / load-front-app-deployments >
< charge-before-app-activation > true < / load-front-app-activation >
< / start class >
<>start-class
< name > ODL-start < / name >
DefaultServer < target > < / target >
< deployment > 145 order < / order of deployment >
> class name < oracle.core.ojdl.weblogic.ODLConfiguration < / class name >
< failure-is-fatal > false < / failure-is-fatal >
< charge-before-app-deployments > true < / load-front-app-deployments >
< charge-before-app-activation > true < / load-front-app-activation >
< / start class >
<>start-class
< name > DMS-start < / name >
DefaultServer < target > < / target >
< deployment-order > 150 < / order of deployment >
> class name < oracle.dms.wls.DMSStartup < / class name >
< failure-is-fatal > false < / failure-is-fatal >
< charge-before-app-deployments > true < / load-front-app-deployments >
< charge-before-app-activation > true < / load-front-app-activation >
< / start class >
<>start-class
< name > class start context AWT Application < / name >
DefaultServer < target > < / target >
< deployment-order > 150 < / order of deployment >
> class name < oracle.jrf.AppContextStartup < / class name >
< failure-is-fatal > false < / failure-is-fatal >
< charge-before-app-deployments > true < / load-front-app-deployments >
< charge-before-app-activation > true < / load-front-app-activation >
< / start class >
<>start-class
< name > class start of Web Services < / name >
DefaultServer < target > < / target >
< deployment-order > 150 < / order of deployment >
> class name < oracle.j2ee.ws.server.WebServiceServerStartup < / class name >
< failure-is-fatal > false < / failure-is-fatal >
< charge-before-app-deployments > true < / load-front-app-deployments >
< charge-before-app-activation > true < / load-front-app-activation >
< / start class >
store < file >
< name > mds-GOSA < / name >
< Directory > store/gmds < / book >
DefaultServer < target > < / target >
< / file-store >
< name-server-admin > DefaultServer < / name of the server-admin->
< wldf-system-resources >
Module FMWDFW < name > < / name >
DefaultServer < target > < / target >
< name-file-descriptor > diagnostics/Module-FMWDFW - 2818.xml < / file-descriptor-name >
incident creates FMWDFW < description > from non-controlled Exceptions and critical errors < / description >
< / wldf-system-resources >
< jdbc-system-resources >
< name > LocalSvcTblDataSource < / name >
DefaultServer < target > < / target >
< name-file-descriptor > jdbc/LocalSvcTblDataSource - jdbc.xml < / file-descriptor-name >
< / jdbc-system-resources >
< jdbc-system-resources >
< name > opss-data-source < / name >
DefaultServer < target > < / target >
< name-file-descriptor > jdbc/opss-datasource - jdbc.xml < / file-descriptor-name >
< / jdbc-system-resources >
< jdbc-system-resources >
< name > opss-audit-viewDS < / name >
DefaultServer < target > < / target >
< name-file-descriptor > jdbc/opss-auditview - jdbc.xml < / file-descriptor-name >
< / jdbc-system-resources >
< jdbc-system-resources >
< name > opss-audit-DBDS < / name >
DefaultServer < target > < / target >
< name-file-descriptor > jdbc/opss-audit - jdbc.xml < / file-descriptor-name >
< / jdbc-system-resources >
< jdbc-system-resources >
< name > mds-GOSA < / name >
DefaultServer < target > < / target >
< name-file-descriptor > jdbc/mds-GOSA - jdbc.xml < / file-descriptor-name >
< / jdbc-system-resources >
< jdbc-system-resources >
< name > workdayDS < / name >
DefaultServer < target > < / target >
< name-file-descriptor > jdbc/workdayDS-6554 - jdbc.xml < / file-descriptor-name >
< / jdbc-system-resources >
< consistency cluster-system-resource >
< name > defaultCoherenceCluster < / name >
< name-file-descriptor > coherence/defaultCoherenceCluster - coherence.xml < / file-descriptor-name >
< / coherence-cluster-system-resources >
< / domain >
Data source that I use it is wordayDS.
I have deleted my domain name and create new ones yet to configure SQL authentication, and it works fine.
-
I was able to use ASP to retrieve data from SQL database by using something like the one below:
SQL = "SELECT PageName",
SQL = SQL & "CONVERT (NUMERIC (6,2), AVG(Rating * 1.00))" AVERAGE ".
SQL = SQL & 'COUNT (Rating) AS Total',
SQL = SQL & "SUM(CASE WHEN Rating = 1 THEN 1 ELSE 0 END) AS [Star1Total]"
SQL = SQL & "SUM(CASE WHEN Rating = 2 THEN 1 ELSE 0 END) AS [Star2Total]"
SQL = SQL & "SUM(CASE WHEN Rating = 3 THEN 1 ELSE 0 END) AS [Star3Total]"
SQL = SQL & "SUM(CASE WHEN Rating = 4 THEN 1 ELSE 0 END) AS [Star4Total]"
SQL = SQL & "SUM(CASE WHEN Rating = 5 THEN 1 ELSE 0 END) AS [Star5Total].
SQL = SQL & "FROM [SDBI]. [dbo]. [GnieRatePage] "
SQL = SQL & "GROUP BY PageName".
SQL = SQL & "ORDER BY PageName".
I then post on the help page:
Response.Write ("PageName") Recordset
What I need, it of to transmit these data to Flash and let Flash to view the coast. How to do by way of ASP?
Thank you
I don't use the proper syntax for writing couples variable/value with asp, but, if this is the case, use:
var myTextLoader:URLLoader = new URLLoader();
myTextLoader.dataFormat = pouvez;
myTextLoader.addEventListener (Event.COMPLETE, onLoaded);
function onLoaded(e:Event):void
{
for {(var s:String in e.target.data)
trace (s, e.Target.Data [s]);
}
myTextLoader.load (new URLRequest ("read_page_rating.asp"));
-
Clusering SQL 2012 on ESX 5.1
Hello
Can someone tell me the current state of Microsoft Cluster Services with Vmware Esxi 5.1? This link says that it supports HA and DRS:
VMware KB: Microsoft Clustering on VMware vSphere: guidelines for supported configurations
This link says that it is not:
I'm looking through availability of AlwaysOn SQL on a 5.1 ESXi cluster groups and want to confirm the status of HA and DRS support on this cluster? My availability of AlwaysOn SQL group won't use shared storage (witness file share that will be used), but it is always based on the Microsoft Clustering Services. I think to create 2 WindowsServer 2012 SMV, Setup Windows clustering services with haste VMDK thick set to zero (no RDM), on a cluster HA and DRS activated, but DRS and HA disabled for my cluster of virtual machines. This is a supported scenario?
It would be good to hear from people who have something similar.
Thank you
Follow the article. With your Setup program that do not rely on the shared disk, SQL 2012 VM in the AlwaysOn Availaibity group will be just an another VM and can be protected by HA. It can also use vMotion and DRS. Just install anti-affinites rules to make sure that the SQL VM do not sit on the same ESXi host.
Added information here http://www.vmware.com/files/pdf/solutions/SQL_Server_on_VMware-Availability_and_Recovery_Options.pdf
-
SQL statement by using the min aggregate function result extract a line - how?
Need help, try to do something seemingly simple. I'll give a simple example to illustrate the problem.
I'll use a simple table of addresses with 4 fields.
Create the table:
complete with 6 rowsCREATE TABLE "ADDRESSES" ( "OWNER_NAME" VARCHAR2(20 BYTE), "STREET_NAME" VARCHAR2(20 BYTE), "STREET_NUMBER" NUMBER ) ;
We now have this:Insert into ADDRESSES (OWNER_NAME,STREET_NAME,STREET_NUMBER) values ('FRED','MAIN',1); Insert into ADDRESSES (OWNER_NAME,STREET_NAME,STREET_NUMBER) values ('JOAN','MAIN',2); Insert into ADDRESSES (OWNER_NAME,STREET_NAME,STREET_NUMBER) values ('JEAN','MAIN',3); Insert into ADDRESSES (OWNER_NAME,STREET_NAME,STREET_NUMBER) values ('JACK','ELM',1); Insert into ADDRESSES (OWNER_NAME,STREET_NAME,STREET_NUMBER) values ('JANE','ELM',2); Insert into ADDRESSES (OWNER_NAME,STREET_NAME,STREET_NUMBER) values ('JEFF','ELM',3);
Select * from addresses
Now, I want to group by street name and obtain a number of houses. At the same time, I would like to know the number of the first and the last HouseOWNER_NAME STREET_NAME STREET_NUMBER -------------------- -------------------- ---------------------- FRED MAIN 1 JOAN MAIN 2 JEAN MAIN 3 JACK ELM 1 JANE ELM 2 JEFF ELM 3 6 rows selected
Excellent. Now for the problem. I would also like to list on each line, the owner who lives at number House first and/or the last. It should be noted, assume that the name of the street and the number is uniqueselect street_name, count(*) "NBR HOUSES", min(street_number) "First Number", max(street_number) "Last Number" from addresses group by street_name produces STREET_NAME NBR HOUSES First Number Last Number -------------------- ---------------------- ---------------------- ---------------------- ELM 3 1 3 MAIN 3 1 3 2 rows selected
It seems I have everything that I need. Don't know how to get home.
I tried:
But getting a syntax error sql group function unauthorized when I add the subselect statement.select street_name, count(*) "NBR HOUSES", min(street_number) "First Number", max(street_number) "Last Number", (Select b.owner_name from addresses b where b.street_number = min(street_number) and b.owner_name = owner_name) "First Owner" from addresses group by street_name
any ideas?
Thanks for any help.
Published by: user6876601 on November 19, 2009 19:08
Published by: user6876601 on November 19, 2009 19:30Hello
Welcome to the forum!
Get the minimum and maximum number for each street is a pretty simple concept; simpler to describe and simple to code.
Now you want to the owner_name associate the maximum and minimum, which is a concept more complex; a little more difficult to describe and, unfortunately, much less simple to code and much, much more difficult to explain:select street_name, count (*) "NBR HOUSES", min (street_number) "First Number", min (owner_name) KEEP (DENSE_RANK FIRST ORDER BY street_number) "First Owner", max (street_number) "Last Number", min (owner_name) KEEP (DENSE_RANK LAST ORDER BY street_number) "Last Owner" from addresses group by street_name ;
You will notice that I used min for "Original owner" and "last owner". Why is this?
The key word in these functions is the FIRST or the LAST word that comes after DENSE_RANK and before ORDER BY. The function at the beginning is simply a break.In other words, MIN in this context refers only to what needs to happen when there is a link to the first or last in the group. Even if such a thing is impossibe in your data, generic functions must have a mechanism to return a single owner_name when two or more rows have an equal right to having the highest street_number. For example, if we change the address of Joan in 1 hand, then MIN (street_number) is always 1, of course, but who is the person associated with the minimum street_number: Fred or Joan? Both have an equal claim that he owns with the smallest address on Main Street, but aggregate functions must return a single value, so we must have a mechanism to indicate to the system, whether to return 'JOAN' or 'FRED '. In this example, I arbitrarily in the network said een of tie, the lowest name, in alphabetical order, must be returned. In this case, 'FRED' would return, "FRED" prior to "JOAN".
Thank you for including CREATE TABLE and INSERT!
Maybe you are looking for
-
owner of this account is more so an employee of the company
Nevermind dude.
-
Hello, when I try to open my iPhoto library, I get a message saying "your library is in use by another application or became unreadable." I've seen other posts on this topic, but they all seem a bit outdated (~ 2014) so I wanted to see if the same so
-
How to make a loop on downloaded mp3 sound for iPhone 6
I downloaded Brown noise via iTunes. It is called white loops noise for a sleep sounds for life (Yes it's Brown noise!), but it is not in a loop. How can I do so that it plays continuously and helps me sleep loop on my iPhone 6? Thank you!
-
Memory almost full (viral)
For a month, I have a few problems of spatial memory. A while ago a memory is almost full advertising and if I deleted a request to recover some memory in my IPad it takes all this memory, and once again the IPad tells me is out of memory. I cleaned
-
not printing from the internet
My hp envy 5532 won't print on the internet. Other printing work directly to my computer using a USB stick as had many wireless connection problems