SQL need help
Hello
I need help to build the result set.
CREATE table account (number of Account_no, Trn_dt Date, Drcr char(1), debit and credit number);
Insert into the values(1001,'01-Jan-2014','D',100000,0) account.
Insert into the values(1001,'1-Jan-2014','C',0,100000) account.
Insert into the values(1001,'15-Jan-2014','C',0,50000) account.
Insert into the values(1001,'01-Jan-2014','C',0,50000) account.
Insert into the values(1001,'01-Jan-2014','D',150000,0) account.
commit;
SELECT * FROM account;
Can someone help me build the result set.
Account no. | Transaction_Dt | DRCR | Flow | Credit | Balance |
10001 | 1 January 14 | D | 100000 | 0 | 100000 |
10001 | 1 January 14 | C | 0 | 100000 | 0 |
10001 | 15 January 14 | C | 0 | 50000 | -50000 |
10001 | February 1, 14 | C | 0 | 50000 | -100000 |
10001 | 10 February 14 | D | 150000 | 0 | 50000 |
Thank you
Select TRN_DT, DRCR, DEBIT, CREDIT, ACCOUNT_NO, sum(DEBIT-CREDIT) (order of layout TRN_DT, rownum) account balance;
Tags: Database
Similar Questions
-
Update sql need help for hierarchy table
I'm trying to update the raw field based on each unit Qty is the appearance of the table.
slevel | Manager | seller | unit_qty | gross Qty
0 | Mary | Mary | 1. 1
.1 | Mary | Lynn | 3. null
.1 | Mary | Betty | 2. null
.1 | Mary | Alice | 2. null
.. 2. Alice | Susan | 1. null
.1 | Mary | Amy | 4. null
I'd like the table to look like this after the update, with the values
slevel | Manager | seller | unit_qty | gross Qty
0 | Mary | Mary | 1. 1
.1 | Mary | Lynn | 3. 3 * 1 = {color: #ff0000} 3 {color}
.1 | Mary | Betty | 2. 2 * 1 = {color: #ff0000} 2 {color}
.1 | Mary | Alice | 2. {color: #008000} 2 * 1 {color} = {color: #ff0000} 2 {color}
.. 2. Alice | Susan | {color: #0000ff} 1 {color} | {color: #008000} 2 * 1 {color} {color: #0000ff} * 1 {color} = {color: #ff0000} 2 {color}
.1 | Mary | Amy | 4. 4 * 1 = {color: #ff0000} 4
{color}
It is the SQL, I've tried to use unsuccessfully.
Update table set gross_qty = unit_qty * ({color: #ff0000} select gross_qty from table {color})
({color: #ff0000} where Manager = seller {color})
where slevel & gt; 0
This is not the same thing?
UPDATE vendor s1
SET s1.gross_qty =
(CASE
WHEN s1.slevel = 0 THEN s1.unit_qty
WHEN s1.slevel > 0 THEN
S1.unit_qty * (SELECT SELLER s2 WHERE s2.client = s1.manager s2.gross_qty)
(END);I wrote here a basis of hierarchical queries:
http://blog.mclaughlinsoftware.com/hierarchical-queries-basics/
It could be that useful...
-
Persentage calculation in Sql - need help Urgent
Hi friends
In my life I want to show the increase in cost for example if cost std 100 and when the user enters 110, that means, I want to show 10% high than the std cost
For EX:
Cost of entry by the user = 110
cost of billing STD = 100
I took the difference between (cost - point user) / point cost * 100, it gives the percentage of how much increased and then the issue cost std
for this I used my logical mathemathical ((110-100)/100) * 100
I'm stuck here
----------------
in some cases the std cost of the item is '0' iam so get an error message (could not be evaluated because or error ORA-01476 divisor is equal to zero)
Please suggest me other logic to show progress %
I used this code
Select item_cost, round (((utilisateur coût-item_COST) / item_COST) * 100), 2) double
Thank you in advance
ATThis is the same logic with decoding
With Data As (Select 100 Item_Cost, 110 User_Cost From Dual Union All Select 0,20 From Dual ) select item_cost,user_cost, decode(item_cost,0,0,((user_cost-item_cost)*100)/item_cost) "Percentage" from data;
AT wrote: the logic is decode function he's be much better I think so
Now could you please clarify why you think it's better that the case?
Vivek L
-
Need help to identify the type of object in the loop of pl/sql
Hello
I need help to identify the Type of object declared beneath a procedure as shown below:
I need to pass the parameter to the procedure as a TYPE of OBJECT and also refer to variables of Type Object in a loop
create or replace type TEST_VALIDATION_REC is RECORD (order_num varchar2 (30),)
number of inventory_item_id
reserved_YN varchar2 (1).
error_flag varchar2 (1).
Error_message varchar2 (2000)
);
CREATE OR REPLACE TYPE VALD_TBL AS VARRAY (10000) OF TEST_VALIDATION_REC;
PROCEDURE ADD_TO_ORD)
p_lot_number_list IN VALD_TBL,
p_ord_number IN Varchar2,
p_user_id in NUMBER: = fnd_profile.value ('USER_ID'),-change 1.10
p_responsibility_id in NUMBERS: = fnd_profile.value ('RESP_ID'),-change 1.10
p_application_id IN VARCHAR2: = 'PO',-change 1.10
x_error_flag OUT Varchar2,
x_error_msg OUT Varchar2
)
In the above procedure, I had the VALD_TBL. Is it OK?
And how in the loop if the records if I use:
FOR indx1 IN 1.p_lot_number_list. COUNTY
LOOP
BEGIN
SELECT
inventory_item_id
IN
ln_item_id
Of
dummy_lot_tab
WHERE
lot_number = p_lot_number_list (indx1); - > how direct the item here?
EXCEPTION
WHILE OTHERS THEN
ln_item_id: = NULL;
END;
Records are PL/SQL objects. They are not the SQL objects. You can create a SQL TYPE (schema level) as a collection (variable-tables only, tables nested).
So therefore your first statement is syntactically incorrect
CREATE OR REPLACE TYPE TEST_VALIDATION_REC IS RECORD (order_num VARCHAR2(30), inventory_item_id NUMBER, reserved_YN VARCHAR2(1), error_flag VARCHAR2(1), Error_message VARCHAR2(2000) );
You must put in an anonymous PL/SQL block or the stored procedure
DECLARE TYPE test_validation_rec IS RECORD ( order_num VARCHAR2(30), inventory_item_id NUMBER, reserved_YN VARCHAR2(1), error_flag VARCHAR2(1), error_message VARCHAR2(2000) ); TYPE vald_tbl iS VARRAY(10000) OF test_validation_rec; lv_tbl vald_tbl; BEGIN lv_tbl := vald_tbl(); -- insert your code here END;
-
Need help with SQL/PL/SQL for Dates
Hi Experts - need help with a SQL query.
I need to insert some date fields in a table called CALENDAR_PERIOD.
Current data in CALENDAR_PERIOD table with their data types:
STARTPERIOD (DATE) YEAR (NUMBER) PERIOD_LABEL (Varchar2 255)
02/11/2014 2014 2014/02/11 SUN
03/11/2014 2014 14/03/11 MON
04/11/2014 2014 11/04/14 MAR
I have to increment above values up to the year 2025. I don't know how to write SQL and increment of these values.
Ex: My next value should insert: 05/11/2015 2014 11/05/14 WED like that I need to insert data until 12 31, 2025.
Can you please help me with PL/SQL block?
Really appreciate your help!
DB version:
Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE Production 11.2.0.3.0
AMT for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
Thank you
SandyHello Sandy,
Maybe something like
INSERT INTO calendar_period (startperiod, year, period_label)
SELECT DATE '' 2014-11-04 + LEVEL
, TO_NUMBER (TO_CHAR (DATE '' 2014-11-04 + LEVEL, "YYYY"))
, TO_CHAR (DATE '' 2014-11-04 + LEVEL, "MM/DD/YY DY")
OF the double
CONNECT BY LEVEL<= date="" '2025-12-314="" -="" date="">=>
;
((mais je ne comprends pas pourquoi nous créons une telle table "année" et "period_label" peuvent être calculé à partir de startperiod))
Best regards
Bruno Vroman.
-
Hello
I have a data in table (raj_table) with columns (char11) raj_id, raj_number (varchar2 (15)), raj_format (NUMBER), Primary_ID (identity with the values of the primary key column)
Primary_ID raj_id Raj_number Raj_format
1 raj rajvend 1
2 raj rajvend 1
3 raj rajvendor1 2
4 raj rajvendor1 2
5 raj rajvendor1 2
6 raj rajvendor2 3
I used under SQL to get query output as below, but has not achieved the required result:
Select client_id vendor_number, vendor_format, primary_id, row_number() on sl_no (client_id partition, primary_id, vendor_format order of client_id primary_id, vendor_format, vendor_number, vendor_number)
from raj_table by sl_no asc
SL_NO raj_id raj_number raj_format primary_id
1 1 raj rajvendor 1
1 2 raj rajvendor 1
2 3 raj rajvendor1 2
2 4 raj rajvendor1 2
2 5 raj rajvendor1 2
3 6 raj rajvendor2 3
I need help with a SQL query to get the result as above without using the group by clause. I want to bring together the combination of separate line of the three columns (raj_id, raj_number, raj_format) and add a unique serial number for each online game (SL_NO column below). So, above there are 3 unique set of (raj_id, raj_number, raj_format) I can get in a group by clause, but I can not add prmiary_id, SL_NO values if I group by clause. I used the analytical functions like row_number() but no luck. Need solution for this.
with t as)
Select 'raj' raj_id, 'rajvend' raj_number, 1 raj_format, 1 primary_id Union double all the
Select option 2, 'raj', 'rajvend', 1 double Union all
Select 3, 'raj', 'rajvendor1', 2 double Union all
Select 4, 'raj', 'rajvendor1', 2 double Union all
Select 5, 'raj', 'rajvendor1', 2 double Union all
Select 6, 'raj', 'rajvendor2', 3 double
)
Select dense_rank() over (order of raj_id, raj_number, raj_format) sl_no,
t.*
t
order by primary_id
/
PRIMARY_ID RAJ RAJ_NUMBER RAJ_FORMAT SL_NO
---------- ---------- --- ---------- ----------
1 1 raj rajvend 1
1 2 raj rajvend 1
2 3 raj rajvendor1 2
2 4 raj rajvendor1 2
2 5 raj rajvendor1 2
3 6 raj rajvendor2 36 selected lines.
SQL >
SY.
-
Need help with PL/SQL query complex
I need help with a query that need access to data from 3 tables. That's what I did
I created 3 tables
CREATE TABLE post_table
(
post_id varchar (20),
datepost DATE,
KEY (post_id) elementary SCHOOL
) ;
CREATE TABLE topic
(
TOPIC_ID varchar (20),
name varchar (20),
PRIMARY KEY (topic_id)
);
CREATE TABLE blogpost_table
(
TOPIC_ID varchar (20),
post_id varchar (20),
PRIMARY KEY (topic_id, post_id);
FOREIGN KEY (topic_id) REFERENCES topic (topic_id) ON DELETE CASCADE,
FOREIGN KEY (post_id) REFERENCES post_table (post_id) ON DELETE CASCADE
);
Now, I inserted a few values in these tables as
INSERT INTO post_table VALUES ('p1', to_date ('2009-09-14 18:00 "," MM/DD/YYYY mi:ss'));))
INSERT INTO post_table VALUES ('p2', to_date ('2009-07-18 18:00 "," MM/DD/YYYY mi:ss'));))
INSERT INTO post_table VALUES ('p3', to_date ('2009-07-11 18:00 "," MM/DD/YYYY mi:ss'));))
INSERT INTO post_table VALUES ('p4', to_date ('2009-03-11 18:00 "," MM/DD/YYYY mi:ss'));))
INSERT INTO post_table VALUES ('p5', to_date ('2009-07-13 18:00 "," MM/DD/YYYY mi:ss'));))
INSERT INTO post_table VALUES ('p6', to_date ('2009-06-12 18:00 "," MM/DD/YYYY mi:ss'));))
INSERT INTO post_table VALUES ('p7', to_date ('2009-07-11 18:00 "," MM/DD/YYYY mi:ss'));))
INSERT INTO VALUES subject ("t1", "baseball");
INSERT INTO category VALUES ('t2', 'football');
INSERT INTO blogpost_table VALUES ("t1", "p1");
INSERT INTO blogpost_table VALUES ('t1', 'p3');
INSERT INTO blogpost_table VALUES ("t1", "p4");
INSERT INTO blogpost_table VALUES ('t1', 'p5');
INSERT INTO blogpost_table VALUES ('t2', 'p2');
INSERT INTO blogpost_table VALUES ('t2', 'p6');
INSERT INTO blogpost_table VALUES ("t2", "p7");
I'm launching SQL queries on the table in this topic.
I want to write a SQL query that returns me the name of a topic (s) and the number of blog_post (s) associated with the topic in descending order of the number of blog posts created in July.
Can someone please help me to write this query?
Thank you
Published by: user11994430 on October 9, 2009 07:24Thanks for the test of the configuration!
SQL>SELECT t.NAME, COUNT(*) 2 FROM topic t, blogpost_table b, post_table p 3 WHERE b.topic_id = t.topic_id 4 AND p.post_id = b.post_id 5 AND p.datepost >= DATE '2009-07-01' 6 AND p.datepost < DATE '2009-08-01' 7 GROUP BY t.NAME 8 ORDER BY COUNT(*) desc; NAME COUNT(*) -------------------- ---------- baseball 2 soccer 2
HTH, Urs
-
Need help with query SQL Inline views + Group
Hello gurus,
I would really appreciate your time and effort on this application. I have the following data set.
Reference_No---Check_Number---Check_Date---description---Invoice_Number---Invoice_Type---Paid_Amount---Vendor_Number
1234567 11223 - 05/07/2008 -paid for cleaning- 44345563-I-* 20.00 *---19
1234567 11223 - 05/07/2008 - 44345563 -a--10,00---19 ofbad quality adjustment
7654321 11223 - 05/07/2008 - setting the last billing cycle - 23543556 - A - 50.00 - 19
4653456 11223 - 05/07/2008 - paid for cleaning - 35654765 - I - 30, 00-19
Please ignore '-' added for clarity
I'm writing a paid_amount based on Reference_No, Check_Number, Payment_Date, Invoice_Number, aggregate query Invoice_Type, Vendor_Number and display description with Invoice_type 'I' when there are multiple records with the same Reference_No, Check_Number, Payment_Date, Invoice_Type, Invoice_Number, Vendor_Number. When there are no more records I want to display the respective Description.
The query should return the following data set
Reference_No---Check_Number---Check_Date---description---Invoice_Number---Invoice_Type---Paid_Amount---Vendor_Number
1234567 11223 - 05/07/2008 -paid for cleaning- 44345563-I-* 10.00 *---19
7654321 11223 - 05/07/2008 - setting the last billing cycle - 23543556 - A - 50.00 - 19
4653456 11223 - 05/07/2008 - paid for cleaning - 35654765 - I - 30, 00-19
Here's my query. I'm a little lost.
Select b., A.sequence_id, A.check_date, A.check_number, A.invoice_number, A.amount, A.vendor_number
de)
Select sequence_id, check_number, check_date, invoice_number, sum (paid_amount) sum, vendor_number
of the INVOICE
Sequence_id group check_date, check_number, invoice_number, vendor_number
) A, B OF INVOICE
where A.sequence_id = B.sequence_id
Thank you
NickIt seems that this is a duplicate thread - correct me if I am wrong in this case->
Need help with query SQL Inline views + Group
Kind regards.
LOULOU.
-
Need help with Oracle SQL merge records according to date and term dates
Hi all
I need help to find this little challenge.
I have groups and flags and effective dashboards and dates of term against these indicators according to the following example:
GroupName Flag_A Flag_B Eff_date Term_date Group_A THERE THERE 20110101 99991231 Group_A N N 20100101 20101231 Group_A N N 20090101 20091231 Group_A N N 20060101 20081231 Group_A N THERE 20040101 20051231 Group_A THERE THERE 20030101 20031231 Group_B N THERE 20040101 99991231 Group_B N THERE 20030101 20031231 As you can see, group_A had the same combination of (N, N) flag for three successive periods. I want to merge all the time periods with the same indicators in one. Where entry into force will be the most early (underlined) time period and end date will be later (underlined)
So the final result should look like this:
GroupName Flag_A Flag_B Eff_date Term_date Group_A THERE THERE 20110101 99991231 Group_A N N 20060101 20101231 Group_A N THERE 20040101 20051231 Group_A THERE THERE 20030101 20031231 Group_B N THERE 20030101 99991231 Thanks for your help
Here's the DDL script
drop table TMP_group_test;
create table TMP_group_test (groupname varchar2 (8))
, flag_a varchar2 (1)
, flag_b varchar2 (1)
, eff_date varchar2 (8)
, term_date varchar2 (8)
);
insert into TMP_group_test values ('Group_A', 'Y', 'Y', ' 20110101 ', ' 99991231');
insert into TMP_group_test values ('Group_A', 'n', ' n ', ' 20100101 ', ' 20101231');
insert into TMP_group_test values ('Group_A', 'n', ' n ', ' 20090101 ', ' 20091231');
insert into TMP_group_test values ('Group_A', 'n', ' n ', ' 20060101 ', ' 20081231');
insert into TMP_group_test values ('Group_A', 'n', 'Y', ' 20040101 ', ' 20051231');
insert into TMP_group_test values ('Group_A', 'Y', 'Y', ' 20030101 ', ' 20031231');
insert into TMP_group_test values ('Group_B', 'n', 'Y', ' 20040101 ', ' 99991231');
insert into TMP_group_test values ('Group_B', 'n', 'Y', ' 20030101 ', ' 20031231');
commit;
Post edited by: user13040446
It is the closest, I went to the solution
I create two rows;
Rnk1: partition by group name, order of eff_date / / desc: this grade will sort the records of the most recent and handed to zero for each group\
Rnk2: (dense) partition by group name, flag_A, flagb: this grade for each combination of group\flag gives a number so that they are classified as "families".
Then I use the function analytic min
Min (eff_date) more (partition of GroupName, rnk2): the idea is that, for each Member of the same family, the new date is the min of the family (and the max for the date of the term), at the end I just need separate so that the duplicates are gone
Now the problem. As you can see from the query below, records of 1 and 6 (as identified by rownum) are identified in the same family, because they have the same combination of flag, but they are not successive, so everyone must keep its own date of entry into force.
If only I can make the distinction between these two that would solve my problem
Query:
Select rowNum,GroupName, flag_a, flag_b, eff_date, term_date, rnk1, rnk2
, min (eff_date) more than (partition by GroupName rnk2( ) min_eff
Of
(
Select rowNum,
GroupName , flag_a , flag_b , eff_date , term_date
rank() more than (partition by GroupName stopped by eff_date desc) rnk1
DENSE_RANK() more than (partition by GroupName order by flag_A flag_B ( ) rnk2
de dsreports . tmp_group_test
) order by rowNum
Hello
user13040446 wrote:
Hi KSI.
Thanks for your comments, you were able to distinguish between these lines highlight, but lost lines 2,3,4 which are supposed to have the same date min = 20060101.
Please see the table wanted to see the final result I want to reach
Thanks again
This first answer is basically correct, but in the main query, you want to use the function MIN, not the analytical function aggregation and GROUP BY columns with common values, like this:
WITH got_output_group AS
(
SELECT GroupName, flag_a, flag_b, eff_date, term_date
ROW_NUMBER () OVER (PARTITION BY GroupName
ORDER BY eff_date
)
-ROW_NUMBER () OVER (PARTITION BY GroupName, flag_a, flag_b)
ORDER BY eff_date
) AS output_group
OF tmp_group_test
)
SELECT GroupName, flag_a, flag_b
MIN (eff_date) AS eff_date
MAX (term_date) AS term_date
OF got_output_group
GROUP BY GroupName, flag_a, flag_b
output_group
ORDER BY GroupName
eff_date DESC
;
The result I get is
GROUP_NA F F EFF_DATE TERM_DAT
-------- - - -------- --------
Group_A Y 20110101 99991231 Y
N Group_A 20101231 20060101 N
Group_A N 20051231 20040101 Y
Group_A Y Y 20031231-20030101
Group_B N Y 99991231 20030101
which is what you asked for.
-
Members of the Group of respected
I need your urgent assistance to solve my problem, if someone who at least somewhat or large information please help me.My problem is related to SCCM 2012 and SQL server 2008.: - I have to develop a custom reports for SCCM 2012 for one of my clients. I have configured all the settings required for preparing the report, and I have examples of reports provided with sccm 2012.I get the problem while developing new relationships, if I have examples of reports that I have studied the corresponding reports. I don't get detailed information from the database to create query and get the desired result. As I have not idea of detail of this database structure in it.So I need help to create the query as I am new on this database.If anyone understand please give me help or link where I can build the reportThanks in advance.Forums for this product are here: http://social.technet.microsoft.com/forums/en-US/category/configurationmanager/
-
I need help for the upgrade of my current system.
I need help for the upgrade of my current system.
I have SBS 2008 with (Exch 2007, SQL 2005, Sharepoint, backupexec 2010 for sbs) licenses.
I want to make the larger environment using the following:
(1) apply Virtualization
(2) apply to the failover process (clustering)
"(3) the environment must support adding server terminal server, ERP server, exchange server, domain controller, backup manager.
Storage 4) that supports Raid (1 and 5)
UTM excellent 6) that supports (SSL VPN, VPN Global)
suitable backup solution 7)
(8) good antivirus for clients
my questions:
(1) can you provide me with a good design for this environment
(2) should I choose what operating system:
Microsoft datacenter or company
I know datacenter provide us the unlimited VM but needs per processor license
so if I have two Grouped servers I want to buy 4 licenses
and just 4 VMs per company license... to say that we have two servers and maintain 8 vms so wat happened if 1 goes down... How can I migrate the 4 virtual machines on the server failed to another server group... ? should I buy enterprise license?
(3) if I get the SAN storage for data... How can I save this storage... should I get another SAN?
(4) how can I upgrade SBS stad single server (windows standrad) without losing the licenses as Exch 2007, SQL 2005, sharepoint.is it a must to buy an edition full std server or there is a way to upgrade (license wise, I mean)?
(5) what about win2k8 license for VM:
lets say we have physical that has windows license so that enough to have windows for VM or should I buy windows for VM licenses?
(6) can I use backExec license for SBS with windows 2008 standard
(7) who better to virtualization AMD or INTEL
(8) hyper V or VMware?
(9) what of Microsoft data protection Manager... is this good?
(10) what virtual machine manager? What are the benefites keys
Thanks in advance
Hello AnasAI,
You can find the Server forums on TechNet support, please create a new post at the following link:
http://social.technet.Microsoft.com/forums/en/category/WindowsServer/
-
Error message "cannot start mssql$ sqlexpress on machine" need help!
Error message "cannot start mssql$ sqlexpress on machine" need help!
Hello
-When exactly you receive this error message? It is at the start of the computer or at the launch of a particular application?
If you use SQL Express DBMS and are faced with this problem, thanks for posting your query in SQL Server Express Forums for assistance on this issue.
-
Several VSS writers fail and my backups are failling too. Need help!
Several VSS writers fail and my backups are failling too. Need help:
I have a desltop installed SP3 x 64 XP and a laptop with seven x 64 SP1. In both the machine that my backups fail. I'm trying to back up data by using boats to storage, backup Windows also is failling. I'm taking a full backup on a USB external drive (2 TB).
I did "vssadmin list writers" and showing several writers are in the failed State.
I've done SFC/scannow, it did not help. There is no error in the disk and Chkdsk.
I don't know how VSS works and how to solve the problem. Help, please!
A lot of people told me they found this informative article. That's why I upgraded that and display back again.
-------------------------------------------------------
Before you stat is working on this issue make sure that the volumes have no system disk/file error. Run Chkdsk and ensure.
(1) in the case of a failure of backup/writer, we first check the drivers associated with the VSS backup.
These drivers are:
VOLSNAP. SYS
NTFS. SYS
SWPRV. DLL
-Check the version of above mentioned MS 3 files and update using MS Hotfix.
If we have installed other suppliers, who might be the supplier of StorageCraft, Symantec suppliers and suppliers of Acronis, he must ensure that their files are also updated.
Note: You can see the list of suppliers using this command: VSSADMIN LIST PROVIDERS
Some of the DRIVERS PROVIDER commonly find are:
stcvsm.sys
symsnap.sys
snapman.sys
(2) this step is performed only when we find him
VSS writers in a failed State. If we find the stable writers and backups still fail, or we get errors, do not perform this step if you please.
In this case, the VSS writers fail, we can delete the following registry key, after of course saving and restart the server.
HKLM/Software/Microsoft/EventSystem/{26c.../Subscriptions.
This key will be automatically recreated when you restart and writers should return to the stable state.
The writers pending the completion status is not a problem. It's also good that Stable.
We can do on the Server 2003, 2008 and 2008 R2 OS as well.
However, in Windows Server 2003, after you delete and restart the "vssadmin list writers" server cannot display all the writers, in this case must register the dll:
For a list of the dll files to register, please check KB: http://support.microsoft.com/kb/940184
Note: The reinstatement of dll in Windows Vista/2008 and especially is NOT recommended.
(3) if we have only one / specificwriter (s) in a State of failure, which would always be SQL, EXchange, IIS or NTDS, then we have need to revive their respective service Console of service.
If they fail repeatedly, then make sure that the application and its components are updated. See their respective engineers immediately. Make sure that the latest service packs and patches are installed.
(4) make the foregoing, resolves generally 80 to 90% of the questions. If we believe that the issue is occurring, or we have VSS event errors, it may be the providers, the origin of the problem. If the creation of the snapshot does not properly, it can affect writers and other components involved.
Please check providers using "vssadmin list providers. If we find any other provider, other than the Microsoft software shadow copy provider, we have to remove from the list.
To do this: start the registry editor.
HKLM/System/CurrentControlSet/Services/VSS/suppliers/GUID.
One GUID would be for Microsoft Software Shadow Copy provider. The other GUID would be for other providers such as StorageCraft. We will save the GUID, and then delete it. Then restart the machine.
Now when we do vssadmin list providers, we will see only the default Microsoft provider.
I have seen in many cases where our supplier of StorageCraft may not work properly and continue of not not the authors. In such
case, if we get rid of the supplier, then the issue is resolved and not re occurs.
-However this would impede the functionality of StoaregCraft or any other similar to this backup software.
That's why to engage respective software tech support for further assistance.
(5) If a shadow copy is enabled on the volume, make sure that the storage area is set to the default location.
For example:
If we take a snapshot of C: then the storage area should be C:
We are changing that, if we do not have enough free space (at least 300 MB) free.
We can click with the right button on the volume, goto the cliché tab and change it accordingly.
Also note that the minimum value of the storage area should be 300 MB and maximum can be 3000 MB.
We can also set any value between the two, which is a multiple of 300, 600, 900, 1200, 1500 etc... According to the available space.
In the cases where errors in the event viewer on wait times (event id: 12298, 12310, 2004, 12290) then we also need to put the MinDiffArea in the registry.
HKLM/System/CurrentControlSet/Services/Volsnap
Right side, new DWORD VALUE - "MinDiffAreaFileSize" - change and set the value between "300-3000 Mo" or any multiple
300 between the two. Ideally, we can define it on 3000 MB which works even better if we have space.
Ref: http://support.microsoft.com/kb/826936
(6) also, please make sure we have plenty of free space. If we go by the book, a snapshot requires at least 10% of the volume
to be free.
Storage controllers (SCSI/RAID controllers) could also be a problem and may need to be updated.
-
Need help with Ora-00001: constraint Unique voilated in catalog synchronization
Hi Experts...
Has got some problem in the catalog... desperately need help...
Oracle: 11 GR 2
Here is a detail of the error.
from full resynchronization of the recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03009: failure of command resync to the default channel on 26/11/2013 18:01:34
ORA-01403: no data found
ORA-00001: unique constraint (DNKF_GRIP. BRL_U1) violated
========================++++++++++++++++=========================
Kind regards
Hei,
Cool... I have also encountered this kind of error long back... Follow and fortunately we it will be solved.
A problem with the constraint or the Index after the upgrade of the catalogue in 11 GR 2
Remove the constraint, if available, otherwise check index, if found the drop... Rest is history...
First, check the BRL_U1... It can be constrained or an index on the catalog database.
May be it's problem... the compulsion was abandoned during the catalog migration process, but the corresponding index has not been abandoned.
The catalog DB:
-Removal of the index
SQL > connect rman.
SQL > select * from user_constraints where constraint_name = "BRL_U1";
SQL > select * from user_indexes where index_name = "BRL_U1";
SQL > drop index BRL_U1;
Once it will be deposited now connect to the production database to connect to the catalog and re-synchronize... It should work like that...
RMAN target / catalog rman/password@catalog_db_name
RMAN > catalog resync;
from full resynchronization of the recovery catalog
full complete Resync
RMAN > exit
======================================
Kind regards
Firdous Shah
-
Hi, I have installed sqldeveloper - 4.0.3.16.84 - x 64 with JDK and tried to run SQLDeveloper.exe its does not work. A flash comes and goes. It worked fine until two days ago. Don't know what happened all of a sudden its not working. Need help.
I use Windows 7 Pro.
I have read other threads and tried to launch SQLDeveloper.exe from the CMD prompt, nothing is shown a flash comes and goes.
Tried to change of SetJavaHome sqldeveloper.conf to the path JDK that it didn't work.
Please guide me.
Thank you
Maybe there is a problem with SQL Developer, being able to write to the network share of desktop directory. Add the following to your sqldeveloper.conf file to force the settings of the user to store locally also:
AddVMOption - Dide.user.dir = some_local_dir_to_own_system4.0.3.16.84
I hope this helps...
Maybe you are looking for
-
I have a Sanyo 3810 phone that I got from Sprint. My contract expired and I went with cellular consumption. I don't have a place for a SIM card in this phone Sanyo. There are pictures on this phone I want to download on my computer. Some of them
-
error message log on to microsoft exchange to send e-mail from word document
When you try to send email from Word error message say must connect to Microsoft exchange
-
Trying to set up wireless printer, after installation successful, received the message; I'm not allowed to make changes... see network admin?
-
Measurement of temperature using Iex thermistor with PCI-6259
Hi all I have I encounter some difficulties to measure the temperature using MAX with the installation of the thermistor Iex and would like to know if I missed something important. I use external current thermistor excited with 2 ladders and card PCI
-
have a hp pavilion slimline s7727c. hard Dr failed. Puy in identical new WD3200aajs old. reinstalled xp pro OS instead of vista home. everything works well after update driver nvidia to the system. a realtek HD AC97 audio when new. with controller au