<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>notes &#187; SQL</title>
	<atom:link href="http://notes.x25.pl/category/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://notes.x25.pl</link>
	<description></description>
	<lastBuildDate>Tue, 08 Oct 2013 10:16:43 +0000</lastBuildDate>
	<language>pl-PL</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Zmiana właściciela bazy</title>
		<link>http://notes.x25.pl/2013/10/zmiana-wlasciciela-bazy/</link>
		<comments>http://notes.x25.pl/2013/10/zmiana-wlasciciela-bazy/#comments</comments>
		<pubDate>Tue, 08 Oct 2013 10:16:43 +0000</pubDate>
		<dc:creator>manao</dc:creator>
				<category><![CDATA[MS SQL Server]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[mssql]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://notes.x25.pl/?p=36</guid>
		<description><![CDATA[]]></description>
				<content:encoded><![CDATA[<pre class="brush: sql; title: ; notranslate">
USE db_name
GO
sp_changedbowner 'db_user';
</pre>
]]></content:encoded>
			<wfw:commentRss>http://notes.x25.pl/2013/10/zmiana-wlasciciela-bazy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Listowanie uprawnień do tabel/sekwencji</title>
		<link>http://notes.x25.pl/2013/05/listowanie-uprawnien-do-tabelsekwencji/</link>
		<comments>http://notes.x25.pl/2013/05/listowanie-uprawnien-do-tabelsekwencji/#comments</comments>
		<pubDate>Tue, 21 May 2013 09:16:30 +0000</pubDate>
		<dc:creator>manao</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://notes.x25.pl/?p=30</guid>
		<description><![CDATA[]]></description>
				<content:encoded><![CDATA[<pre class="brush: sql; title: ; notranslate">
SELECT grantee, owner, table_name, select_priv, insert_priv, delete_priv, update_priv, references_priv, alter_priv, index_priv, 'revoke select on ' || table_name || ' from ' || grantee || ';'
FROM table_privileges
WHERE owner = '&lt;owner&gt;'
ORDER BY owner, table_name;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://notes.x25.pl/2013/05/listowanie-uprawnien-do-tabelsekwencji/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dodanie pliku do tablespace</title>
		<link>http://notes.x25.pl/2013/03/dodanie-pliku-do-tablespace/</link>
		<comments>http://notes.x25.pl/2013/03/dodanie-pliku-do-tablespace/#comments</comments>
		<pubDate>Mon, 25 Mar 2013 12:15:43 +0000</pubDate>
		<dc:creator>manao</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://notes.x25.pl/?p=25</guid>
		<description><![CDATA[]]></description>
				<content:encoded><![CDATA[<pre class="brush: sql; title: ; notranslate">
--ile zostało
SELECT file_name, bytes, autoextensible, maxbytes FROM dba_data_files;

--dodanie kolejnego pliku, rozwiazuje problem braku miejsca
ALTER TABLESPACE USERS ADD DATAFILE 'd:\app\oracle\oradata\orcl\USERS02.DBF' SIZE 500M autoextend on next 100M;

--stworzenie oraz ustawienie nowego
CREATE TABLESPACE aps DATAFILE 'd:\app\oracle\oradata\orcl\aps01.dbf' size 500M autoextend on next 100M;

ALTER USER ap1 DEFAULT TABLESPACE aps;

select file_name, tablespace_name from dba_data_files ;

DROP TABLESPACE aps INCLUDING CONTENTS;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://notes.x25.pl/2013/03/dodanie-pliku-do-tablespace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle &#8211; wyłączenie wygasania hasła</title>
		<link>http://notes.x25.pl/2013/03/oracle-wylaczenie-wygasania-hasla/</link>
		<comments>http://notes.x25.pl/2013/03/oracle-wylaczenie-wygasania-hasla/#comments</comments>
		<pubDate>Mon, 25 Mar 2013 11:50:08 +0000</pubDate>
		<dc:creator>manao</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://notes.x25.pl/?p=22</guid>
		<description><![CDATA[]]></description>
				<content:encoded><![CDATA[<pre class="brush: sql; title: ; notranslate">
alter profile default limit password_life_time unlimited;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://notes.x25.pl/2013/03/oracle-wylaczenie-wygasania-hasla/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Klucze obce do tabeli</title>
		<link>http://notes.x25.pl/2012/12/klucze-obce-do-tabeli/</link>
		<comments>http://notes.x25.pl/2012/12/klucze-obce-do-tabeli/#comments</comments>
		<pubDate>Wed, 12 Dec 2012 22:06:13 +0000</pubDate>
		<dc:creator>manao</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[constraint]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://notes.x25.pl/?p=15</guid>
		<description><![CDATA[]]></description>
				<content:encoded><![CDATA[<pre class="brush: sql; title: ; notranslate">
SELECT ac.owner,
 ac.constraint_name,
 ac.constraint_type,
 ac.table_name,
 ucc.column_name,
 ac.r_owner,
 ac.r_constraint_name
FROM user_constraints ac
JOIN user_cons_columns ucc
ON ucc.constraint_name = ac.constraint_name
AND ucc.table_name = ac.table_name
WHERE constraint_type = 'R'
AND r_constraint_name IN
 (SELECT constraint_name
 FROM all_constraints
 WHERE constraint_type IN ('P','U')
 AND table_name = upper('table_name')
 );
</pre>
]]></content:encoded>
			<wfw:commentRss>http://notes.x25.pl/2012/12/klucze-obce-do-tabeli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
